Restart Server By Command
#1

Hey hey,

I have my own Server, I want to have a command that restarts it.
I do have a simple version, but I want to have a full one.
My simple version uses "SendRconCommand("gmx");" I want to have a full restart.

I do can restart my Server from the console, but I want an option to do this In-Game. My Server is hosted by Ultra-Host.

Anyone having any ideas?
Reply
#2

Maybe you can use This filterscript
Reply
#3

CMD:gmx(playerid, params[])
{
if (!IsPlayerAdmin(playerid)) {
SendClientMessage(playerid,-1,"Server has been successfully restarted.");
return SendRconCommand("gmx");
} else return SendClientMessage(playerid,red,"ERROR: You need to be RCON Admin to use this command");
}//Use ZCMD include to use this command
Reply
#4

Are there any alternatives?
Reply
#5

Use what Amunra linked you to.
Reply
#6

I guess what u want is to completly close the server application and open it afterwards right?
You'd have to make a php script or smth i guess and then send the command per HTTP function.
I am not suer if that would work, i am just guessing ^^
Reply
#7

I guess I will just keep with the gmx version I currently have, thank everyone!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)