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