Restart command
#8

Heres one so only rcon admins can restart the gamemode so you dont have random people restarting it on you....

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;
    }
But like i said only use exit if you have any sort of auto restart or your server will just shut off
Reply


Messages In This Thread
Restart command - by Jermi - 29.03.2012, 18:30
Re: Restart command - by mineralo - 29.03.2012, 18:32
Re: Restart command - by doreto - 29.03.2012, 18:34
Re: Restart command - by mineralo - 29.03.2012, 18:41
Re: Restart command - by Jermi - 29.03.2012, 18:44
Re: Restart command - by doreto - 29.03.2012, 18:44
Re: Restart command - by Shabi RoxX - 29.03.2012, 18:44
Re: Restart command - by nickdodd25 - 29.03.2012, 20:44

Forum Jump:


Users browsing this thread: 1 Guest(s)