17.03.2013, 13:40
have you tried creating a timer with no repeat? try that that might work.
try this kind of method if this works.
try this kind of method if this works.
pawn Код:
dcmd_restart(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][AdminLevel] >= 10)
{
foreach(Player,i)
{
if(IsPlayerConnected(i))
{
SavePlayer(i);
}
}
SetTimer("ServerGMX",2000,0);//2 seconds with no repeat
GameTextForAll("Server is restarting - Please Wait.",30000,5);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, NO_PERM);
}
return 1;
}
forward ServerGMX();
public ServerGMX()
{
SendRconCommand("gmx");
return 1;
}