18.08.2011, 02:39
Use https://sampwiki.blast.hk/wiki/SetTimerEx
pawn Код:
new Timer[MAX_PLAYERS]
public OnPlayerConnect(playerid)
{
Timer[playerid] = SetTimerEx("OnlineTimeUpdate",216000000,1,"%d",playerid);
return 1;
}
public OnPlayerDisconnect(playeridmreason)
{
KillTimer(Timer[playerid]);
return 1;
}
forward OnlineTimeUpdate(playerid);
public OnlineTimeUpdate(playerid)
{
SetPlayerScore(playerid,GetPlayerScore(playerid)++);
return 1;
}