server restart announce
#10

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
My first suggestion :
pawn Код:
command(announcerestart, playerid, params[])
{
     new string[ 128 ];
     if(YOURGETADMINFUNCTIONHERE(playerid) < DESIREDADMINLEVEL) return SendClientMessage(playerid, 0x0, "You need to be at least DESIREDADMINLEVEL to use this command");
     format(string, sizeof(string), "Admin : %s [ %d ] has announced an restart, please park / land your vehicles.");
     SendClientMessageToAll(0x0, string);
     return SetTimer("OnGmxRestart", 30 * 1000, false); // Not sure if you could use SetTimerEx and call SendRconCommand("gmx");  inside it.
} // Zcmd
Then the function called by SetTimer,

pawn Код:
forward OnGmxRestart();
public OnGmxRestart()
{
     return SendRconCommand("gmx");
}
I already did, and i'm pretty sure it would work.
Reply


Messages In This Thread
server restart announce - by uprp - 17.08.2011, 21:40
Re: server restart announce - by Kush - 17.08.2011, 21:45
Re: server restart announce - by Cameltoe - 17.08.2011, 21:47
Kush - by uprp - 17.08.2011, 21:49
Respuesta: server restart announce - by uprp - 17.08.2011, 22:33
Re: Respuesta: server restart announce - by Kush - 17.08.2011, 23:18
Re: Respuesta: server restart announce - by Kingunit - 18.08.2011, 00:48
Respuesta: server restart announce - by uprp - 18.08.2011, 07:25
AW: server restart announce - by umarmalik - 18.08.2011, 07:49
Re: server restart announce - by Cameltoe - 18.08.2011, 07:49

Forum Jump:


Users browsing this thread: 2 Guest(s)