Help scripting a fairly easy task
So I've been running across some issues with my server lately where the users.ini file won't read upon map change. I would have to execute the amx_reloadadmins through rcon each time for the privileges to be set again, or have the admin reconnect to the server.
All I'm asking from you genuine gentlemen is something that would automatically execute the amx_reloadadmins command upon every mapchange. I would appreciate that very much :) |
Re: Help scripting a fairly easy task
Execute the command during plugin_cfg
|
Re: Help scripting a fairly easy task
Quote:
This is the output, with no changes happening whatsoever, no privileges being set, only through reconnecting. Code:
] rcon amx_reloadadmins |
Re: Help scripting a fairly easy task
You never said you were using AMXBans.
Update AMXBans to the latest development version and then add a task to your plugin |
Re: Help scripting a fairly easy task
Quote:
|
Re: Help scripting a fairly easy task
well, here is the code how set_task works
PHP Code:
there's no needs for task. just put this somewhere in your plugin PHP Code:
|
Re: Help scripting a fairly easy task
Quote:
Quote:
Quote:
|
Re: Help scripting a fairly easy task
Quote:
Code:
----- Currently loaded plugins ----- |
Re: Help scripting a fairly easy task
Not sure if that is the latest or not, you might want to update it again as the latest copy doesn't share SQL info between the 2 plugins (which is what your above error seems to indicate that it is still sharing the info)
Put this in plugin_config set_task(15.0, ... |
| All times are GMT -4. The time now is 21:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.