SA-MP Forums Archive
Shutdown server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Shutdown server (/showthread.php?tid=362236)



Shutdown server - marquezsanchez - 23.07.2012

hi dude I want know if its possible to shoutdown the server with insert a part of code.


Re: Shutdown server - tiernantheman - 23.07.2012

/rcon login [password]
/rcon gmx.


Re: Shutdown server - marquezsanchez - 13.09.2012

no I want shutdown its from a pawn script


Re: Shutdown server - MarkoN - 13.09.2012

pawn Код:
SendRconCommand("exit");



Re: Shutdown server - GTAItsMe - 13.09.2012

PHP код:
SendRconCommand("exit"); 



Re: Shutdown server - Dubya - 13.09.2012

pawn Код:
SendRconCommand("say Server Shutting Down"); // Warning them that it's shutting down.
SetTimerEx("SendRconCommand", 3000, false, "s", "exit");



Re: Shutdown server - marquezsanchez - 13.09.2012

thank you


Re: Shutdown server - [NWA]Hannes - 13.09.2012

pawn Код:
public OnPlaerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/shutdown", true)==0)
    {
        SendRconCommand("exit");
        return 1;
    }
    return 0;
}