06.12.2010, 12:27
pawn Код:
forward Autosave();
SetTimer("Autosave",600000,true); //600 seconds = 600000ms, true = repeating timer
public Autosave()
{
for(new i=0; i<=MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) SavePlayer(i);
}
return 1;
}