SA-MP Forums Archive
[FilterScript] Server Auto Restarter - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Server Auto Restarter (/showthread.php?tid=195527)



Server Auto Restarter - Rokzlive - 02.12.2010

EDIT!

This is very old and i made it when i was first learning to script!
__________________________________________________ ___________________________________________

Ok, i made this in a few mins! Its very simple!

You login to RCON and then say the command /restart.

It will announce to everyone "Admin: Server restarting in 10 minutes!" and will change the hostname to "Your Server Name [Pending Restart]"

After 10 minutes it will announce "Admin: SERVER RESTARTING!" and the server will restart!

After the restart you will see that the hostname has reset to normal!

http://pastebin.com/hMviyGLA

Enjoy!


Original post on my forums: http://forum.rokzlive.com/index.php?...o-restarter.7/


Re: Server Auto Restarter - Rokzlive - 02.12.2010

This is so you can login, say /restart, and logout and let it do the rest.


Re: Server Auto Restarter - scripter1 - 02.12.2010

Quote:
Originally Posted by Rokzlive
Посмотреть сообщение
This is so you can login, say /restart, and logout and let it do the rest.
Definitely have a point there, but overall it's alright.


Re: Server Auto Restarter - Kitten - 03.12.2010

Not to be mean or anything this is to simple,
but nice job.


Re: Server Auto Restarter - MrRyan - 03.12.2010

it can be used on VPS?


Re: Server Auto Restarter - Ernis456 - 03.12.2010

of course yes. This is just script.


Re: Server Auto Restarter - MrRyan - 03.12.2010

OK,i try it