06.08.2013, 16:19
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:
And it will add the minutes they had + the minutes before they disconnect.
pawn Код:
// OnPlayerDisconnect
new
minutes_ = ((GetTickCount( ) - CountMilliseconds[ playerid ]) % (1000*60*60)) / (1000*60)
;
PlayerInfo[playerid][AdminMinute] += minutes_;
// Save here