18.02.2011, 01:14
Using rcon command "changemode crashtheserver", you can use this script to restart your server.
It's better than GMX because we're essentially crashing the server while making it look like a GMX.
Why would I do that? Well, GMX'ing can sometimes leave crap behind, exit works sometimes but not consistently enough, and killing your server process to automatically restart results in not dying when you die, and your sound to mess up.
If you don't understand, then don't worry about it . But this was helpful for me.
Thanks to blacklite for the method on crashing your server.
It's better than GMX because we're essentially crashing the server while making it look like a GMX.
Why would I do that? Well, GMX'ing can sometimes leave crap behind, exit works sometimes but not consistently enough, and killing your server process to automatically restart results in not dying when you die, and your sound to mess up.
If you don't understand, then don't worry about it . But this was helpful for me.
Thanks to blacklite for the method on crashing your server.
Код:
// Crashing the server for a better GMX // Without making the sound messed up and getting you stuck when you're dead #include <a_samp> main() { print("\n---------------------------------------"); print(" Crashing the server. Aka, a good GMX"); print("---------------------------------------\n"); } public OnGameModeInit() { // Crashing the server here new File:crash; fclose(crash); return 1; } public OnGameModeExit() { return 1; }