01.01.2014, 23:25
You could create a 1 second timer, or use OnPlayerUpdate (I do not suggest this)
pawn Код:
public OnPlayerUpdate(playerid)
{
AutoRestart();
return true;
}
stock AutoRestart()
{
new Time[3];
gettime(Time[0], Time[1], Time[2]);
if(Time[0] == 24)
{
SendRconCommand("gmx");
}
else if(Time[0] == 23 && Time[1] == 50) // 10 minutes before 24
{
GameTextForPlayer(..); //edit this line to your choice.
}
}