counting admin time
#7

You need to modify it a bit then, if you want to save it. For example, you load the minutes to PlayerInfo[playerid][AdminMinute], so when they disconnect change to:
pawn Код:
// OnPlayerDisconnect
new
    minutes_ = ((GetTickCount( ) - CountMilliseconds[ playerid ]) % (1000*60*60)) / (1000*60)
;
PlayerInfo[playerid][AdminMinute] += minutes_;
// Save here
And it will add the minutes they had + the minutes before they disconnect.
Reply


Messages In This Thread
counting admin time - by Luca12 - 06.08.2013, 15:33
Re: counting admin time - by [XST]O_x - 06.08.2013, 15:44
Re: counting admin time - by Luca12 - 06.08.2013, 16:00
Re: counting admin time - by Vince - 06.08.2013, 16:08
Re: counting admin time - by Konstantinos - 06.08.2013, 16:13
Re: counting admin time - by Luca12 - 06.08.2013, 16:16
Re: counting admin time - by Konstantinos - 06.08.2013, 16:19
Re: counting admin time - by Luca12 - 06.08.2013, 16:32
Re: counting admin time - by Tanush123 - 06.08.2013, 16:34
Re: counting admin time - by Luca12 - 06.08.2013, 17:02
Re: counting admin time - by Konstantinos - 06.08.2013, 22:30
Re: counting admin time - by Luca12 - 06.08.2013, 22:52
Re: counting admin time - by Konstantinos - 07.08.2013, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)