21.11.2014, 18:40
Quote:
every samp server allready have restart command
login as admin and type /rcon gmx /rcon gmx will restart you'r Server ! . |
https://sampforum.blast.hk/showthread.php?tid=250121
Unless you use:
http://forum.sa-mp.com/showthread.ph...07#post1176007
The best way to restart a server is by kicking all the players before sending the rcon command just as you did in the example code.
There are quite a few mistakes in your script.
- You are nowhere assigning a value to "RestartTime"
- You are formatting a message where it says that the Restart time will be around 30 seconds and yet, you are decreasing it by a minute in the Timer function.