11.11.2014, 18:51
Quote:
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 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 |
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);
going to add autockick so they have to relog
read previous quote