pawn Код:
new ScoreTimer;
forward ScoreUpdate();
public OnGameModeInit()
{
ScoreTimer = SetTimer("ScoreUpdate",600000,1);
return 1;
}
public OnGameModeExit()
{
KillTimer(ScoreTimer);
return 1;
}
public ScoreUpdate()
{
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(i,GetPlayerScore(i)+1);
}
}
return 1;
}