26.01.2014, 10:20
PHP код:
//In The OnGameModeInit:
SetTimer("SaveAccounts",600000,1);
//In the End of the GameMode
forward SaveAccounts();
public SaveAccounts()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SavePlayer(i);
}
}
}