Problem with reload
I want a script to make it reload on startup. Some files that I have
require a restart to be activated. I tried doing this, but it reloads over and over, a loop, even though I'd think it shouldn't. Code:
#include <amxmodx> |
Because everytime the plugin is activated this is called
Code:
which means that this line will be executed every time Code:
|
RELOAD_YES is set to 0 every time the server loads, it isn't saved between maps. Try a cvar instead.
Code:
The two things to note is that the 1 in register_cvar means that it will only be set to 1 the first time the cvar is created, not every time the plugin loads. The second thing is that the cvar is set before you tell the server to reload itself. |
edit : lmao :D i responded to this too, looks like we all did
|
| All times are GMT -4. The time now is 23:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.