Easy Server Restart by Slo_Runner -
slorunner - 09.11.2014
Hi Guys,
I am here with my second FS
What does it do?- Lock Server before restart
- restarts the server
- reload config
Commands
/gmx
Download:
http://pastebin.com/fRK5bK0y
Credit(s):
* slorunner (Me) - Creator
Comment & rep me if you like it
Re: Easy Server Restart by Slo_Runner -
ProKillerpa - 09.11.2014
Cool!
Re: Easy Server Restart by Slo_Runner -
Dairyll - 09.11.2014
I don't think putting in a password before restarting the server is good. Good effort though.
Re: Easy Server Restart by Slo_Runner -
Arastair - 09.11.2014
Simple, but useful for every server.
Re: Easy Server Restart by Slo_Runner -
slorunner - 09.11.2014
Quote:
Originally Posted by Dairyll
I don't think putting in a password before restarting the server is good. Good effort though.
|
well you can delete that line

it will prevent joining
Quote:
Originally Posted by Arastair
Simple, but useful for every server.
|
Thanks, it's my second script
Quote:
Originally Posted by ProKillerpa
Cool!
|
Ty
Re: Easy Server Restart by Slo_Runner -
Kwarde - 09.11.2014
Quote:
Originally Posted by slorunner
well you can delete that line  it will prevent joining 
|
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
Re: Easy Server Restart by Slo_Runner -
thaKing - 09.11.2014
this is one peace of s**t!
Re: Easy Server Restart by Slo_Runner -
Pottus - 09.11.2014
gmx is the shittiest way to restart a server client bugs galore.
Re: Easy Server Restart by Slo_Runner -
Team_PRO - 10.11.2014
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.
Re: Easy Server Restart by Slo_Runner -
slorunner - 11.11.2014
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