AdminMod.de
https://www.adminmod.de/

played time
https://www.adminmod.de/viewtopic.php?t=9976
Seite 1 von 1

Autor:  caramel [ 20.11.2007, 17:14 ]
Betreff des Beitrags:  played time

is there any way to see how many time had been player a player on a server ?

Autor:  [WING] Black Knight [ 20.11.2007, 18:55 ]
Betreff des Beitrags: 

Via Admin Mod Plugin, no. (Would be a little bit difficult to code, but possible)

Via RCon, yes. (Use "rcon status")

Autor:  caramel [ 20.11.2007, 19:21 ]
Betreff des Beitrags: 

hmm, maybe no :P

Autor:  Sir Drink a lot [ 20.11.2007, 22:21 ]
Betreff des Beitrags: 

a. how many times(?) player played on a server?
b. Or as we suppose, how long he plays on a server in one "session"?
c. Or always adding his playtime all over the time on this server?

For c:
Plugin like this:

a. textfile -> steam_id:playtime in seconds

1. on connct -> timestamp_connect, storing steam_id
2. on disconnct-> timestamp_disconnct, search textfile for steam_id
3. steam_id found, read line, playtime in seconds += timestamp_disconnct-timestamp_connect
4. write info back to file

May be not difficult?

Autor:  caramel [ 21.11.2007, 05:26 ]
Betreff des Beitrags: 

hmm, yea something like this :P
if you have time can do this code ? Or tell me what mean "timestamp" :roll:

Autor:  [WING] Black Knight [ 21.11.2007, 20:34 ]
Betreff des Beitrags: 

Zitat:
For c:
Plugin like this:

a. textfile -> steam_id:playtime in seconds

1. on connct -> timestamp_connect, storing steam_id
2. on disconnct-> timestamp_disconnct, search textfile for steam_id
3. steam_id found, read line, playtime in seconds += timestamp_disconnct-timestamp_connect
4. write info back to file

May be not difficult?
What happens, if the player leaves the server during mapchange? What happens, if the server crashes?

Autor:  Sir Drink a lot [ 23.11.2007, 08:31 ]
Betreff des Beitrags: 

on a new map, check which player is still available.
Server Crash... lost... no idea.

Autor:  caramel [ 23.11.2007, 14:42 ]
Betreff des Beitrags: 

freaky :twisted:
well what i want to do : To get all played time of a player, and if played more that 200 hours, auto sets admin to him (also part with auto admin to be in plugin )

Autor:  Sir Drink a lot [ 23.11.2007, 21:38 ]
Betreff des Beitrags: 

hm... maybe:
blacky, your sql plugin in combination with (psychostats or hlstats and) perl?

Autor:  [WING] Black Knight [ 25.11.2007, 11:37 ]
Betreff des Beitrags: 

My sql plugin is more a case study. I wouldn't use that one. It's neither safe nor ever thouht for public release.

Ok, supposing you use psychostats and the mysql version of admin mod it should be an easy task via a php-skript as a cron job.

Check in psyschostats how long the guy played on the server. If it's longer than 200 hours increase his admin rights in the admin mod table.

Autor:  caramel [ 30.11.2007, 21:38 ]
Betreff des Beitrags: 

yeah :o exactly like how you speak i maked

Seite 1 von 1 Alle Zeiten sind UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/