12.03.2013, 15:35
replace OnGMX(); with SetTimer("OnGMX", 1000, false); && ensure ur admin lvl iz 5
edit: or u can try below and call it like this OnGMX();
edit: or u can try below and call it like this OnGMX();
pawn Код:
stock OnGMX()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
OnPlayerSave(i);
DisablePlayerCheckpoint(i);
SetPlayerInterior(i, 0);
SetPlayerVirtualWorld(i, 0);
SetPlayerCameraPos(i, 1460.0, -1324.0, 287.2);
SetPlayerCameraLookAt(i, 1374.5, -1291.1, 239.0);
}
}
GameTextForAll("~w~Server Restarting...", 20000, 5);
SetTimer("OnServerRestart", 10000, 0);
return 1;
}