Shutdown server
#1

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

/rcon login [password]
/rcon gmx.
Reply
#3

no I want shutdown its from a pawn script
Reply
#4

pawn Код:
SendRconCommand("exit");
Reply
#5

PHP код:
SendRconCommand("exit"); 
Reply
#6

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

thank you
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)