29.03.2012, 20:44
Heres one so only rcon admins can restart the gamemode so you dont have random people restarting it on you....
But like i said only use exit if you have any sort of auto restart or your server will just shut off
pawn Код:
if (strcmp("/restart", cmdtext, true, 8) == 0)
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000FF,"Only admins can use this command");
SendRconCommand("gmx");
/*or if you have some type of auto restart like if the server would shut down on its own you could do this
SendRconCommand("exit"); That will make the server do a compleate restart not just the gamemode. But only that if you have a auto crash restart thing*/
return 1;
}

