23.07.2012, 19:08
hi dude I want know if its possible to shoutdown the server with insert a part of code.
SendRconCommand("exit");
SendRconCommand("exit");
SendRconCommand("say Server Shutting Down"); // Warning them that it's shutting down.
SetTimerEx("SendRconCommand", 3000, false, "s", "exit");
public OnPlaerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/shutdown", true)==0)
{
SendRconCommand("exit");
return 1;
}
return 0;
}