How to restart server
#1

hi. i have a windows server running on my home pc and i was wondering when i have compiled my latest .amx file and i want to restart the server to see the changes how do i go about doing this. is it an rcon command
Reply
#2

/rcon gmx
Reply
#3

Or just type gmx into the console.
Reply
#4

wow, thanks a ton. what does gmx stand for? game mode eXit??
Reply
#5

Yes! It's just a basic command that restarts your server
Reply
#6

Another way you could do it is by scripting this into your Gamamode:
pawn Code:
if(strcmp(cmd,"/restart",true)==0)
{
  if(IsPlayerAdmin = 1)
  {
    SendRconCommand("gmx");
    return 1;  
  }
  else
  {
    SendClientMessage(playerid,a color,"BAD NOOB! You no restart server! Go sit in corner");
    SetPlayerHealth(playerid, 0);
    return 1;
  }
}
then all you gotta do is type your rcon login command and do /restart
Reply
#7

no ways. i didnt even know you could send rcon commands. cool. ok i got it. thanks everyone...
Reply
#8

well if your in-game make sure you do /rcon login [rcon password] than /rcon gmx but since you using a home server, you got the window on desktop always.
Reply
#9

ya both the cmd and rcon gmx works...
Reply
#10

Quote:
Originally Posted by icey--t
View Post
hi. i have a windows server running on my home pc and i was wondering when i have compiled my latest .amx file and i want to restart the server to see the changes how do i go about doing this. is it an rcon command
write "gmx" in the window of sampserver.exe and press enter.
Reply
#11

Quote:
Originally Posted by ragu1987
View Post
ya both the cmd and rcon gmx works...
Quote:
Originally Posted by Neonman
View Post
write "gmx" in the window of sampserver.exe and press enter.
That thread was created at 16/02/2009, 03:57 PM
I don't think he'd be waiting for 4.5+ years to take an answer that was already given in the past!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)