28.12.2011, 19:34
pawn Код:
//updated
new pTimer[MAX_PLAYERS];
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(pTimer[playerid]);
return 1;
}
public OnPlayerSpawn(playerid)
{
new GameTimer;
pTimer[playerid] = SetTimerEx("GameTime",1000,1,"i",playerid);
return 1;
}
I'd do it with PVars, then save it to an .ini file on disconnect. ; )
EDIT: Whoops. You should define a timer for every single player. Updated.