20.01.2011, 18:54
Quote:
OnPlayerConnect
SetTimer("GivePoints",60000,true); pawn Код:
|
pawn Код:
//under OnPlayerconnect
timerDaily[playerid] = SetTimerEx ("dailyScore", 60000, true, "d", playerid);
//under OnPlayerDisconnect
KillTimer(timerDaily[playerid]);
//bottom of the script
forward dailyScore (playerid);
public dailyScore (playerid)
{
SetPlayerScore (playerid, GetPlayerScore(playerid) + 5);
return 1;
}