31.01.2011, 13:27
try this:
pawn Код:
//
public OnPlayerUpdate(playerid)
{
new Hour, Min, Second;
gettime(Hour, Min, Second);
if(Hour == 23 && Min == 59)
{
SendRconCommand("gmx");
SendClientMessageToAll(0xDEEE20FF, "24 hours have passed, the server is restarted.");
}
return 1;
}