[FilterScript] Easy Server Restart by Slo_Runner
#10

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
Indeed.

Using the 'password' command indeed puts a password on the server, but it will certainly not be 'unlocked' with 'gmx'! So the server lock remains untill you close samp_server.exe and start it again.
Also, the command gmx does not restart the server, but load the next gamemode specified in server.cfg. Filterscripts and plugins won't be reloaded

Код:
gamemode0 m3sa 1
gamemode1 grandlarc 1
If you started the server for the first time, and you use gmx, it will unload 'm3sa.amx' and load 'grandlarc.amx'.

If you want to reload the current gamemode, you should use the command "changemode". Off course, most people have only specified one gamemode so it will load the only gamemode, but people who have more gamemodes specified will be restarted in another gamemode. Still isn't really a server restart (yes I know, the SAMP Client also says 'server is restarting', but it's still not really a "server" restart).
And yet again, about the password lock; this script will not remove the server lock. Even though it reads the 'server.cfg' in OnFilterScriptInit() (So it's only called one time, unless if you reload the filterscript - So the server name won't change), it doesn't remove the lock (I just tested alot of stuff, just to make sure that what I just all told is true).

In short, here are my two tips:

* Don't use a password lock!
* Use "reloadfs {fs_name}" (where fs_name is the .amx name of your filterscript)

p.s.
Why the heck are you showing a textdraw for 10 seconds showing "SERVER RESTART" while
Just to inform people about the restart...

would this be ok? or should i write a remove all objects & reload all FS code?
Код:
SendRconCommand("password 0");
SendRconCommand("exec server");
format(string,sizeof(string),"changemode %s", GAMEMODE);
SendRconCommand(string);
Quote:
Originally Posted by Runcias
Посмотреть сообщение
this is one peace of s**t!
if you think so...

Quote:
Originally Posted by Pottus
Посмотреть сообщение
gmx is the shittiest way to restart a server client bugs galore.
going to add autockick so they have to relog

Quote:
Originally Posted by Team_PRO
Посмотреть сообщение
Better shut down the client and run it again

Based of my observation. When restart more bugs will appeared some script or map bugs but when i shut down the client and run it again some less bugs will appeared.
read previous quote
Reply


Messages In This Thread
Easy Server Restart by Slo_Runner - by slorunner - 09.11.2014, 13:21
Re: Easy Server Restart by Slo_Runner - by ProKillerpa - 09.11.2014, 14:38
Re: Easy Server Restart by Slo_Runner - by Dairyll - 09.11.2014, 14:44
Re: Easy Server Restart by Slo_Runner - by Arastair - 09.11.2014, 14:51
Re: Easy Server Restart by Slo_Runner - by slorunner - 09.11.2014, 18:01
Re: Easy Server Restart by Slo_Runner - by Kwarde - 09.11.2014, 18:26
Re: Easy Server Restart by Slo_Runner - by thaKing - 09.11.2014, 19:41
Re: Easy Server Restart by Slo_Runner - by Pottus - 09.11.2014, 19:41
Re: Easy Server Restart by Slo_Runner - by Team_PRO - 10.11.2014, 14:12
Re: Easy Server Restart by Slo_Runner - by slorunner - 11.11.2014, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)