[SOLVED] How make a automatic enable / disable plugin
1 Attachment(s)
Hii guys, I try to modifique the Galileo plugin to enable and disable automatically.
I get a source part of this plugin: Show Admins Online to identify the admins. I modified the source of Galileo and I think is correct, BUT I don't know what the correct function (or functions) I call to enable the plugin. What I want: If have one or more ADM online, the plugin doesn't work. If don't have AMD online, the plugin work normaly In attachments have my modified source. Thanks guys. PS: Sorry for may bad english... |
Re: How make a automatic enable / disable plugin
Add this to your plugin.
Code:
|
Re: How make a automatic enable / disable plugin
wrecked, I'll remove my all modifications and put only this code?
What I write in the "a" ? The plugin's name? And about a cvar to enable and disable this function... How I can do? Thanks for help :) |
Re: How make a automatic enable / disable plugin
See for yourself
http://www.amxmodx.org/funcwiki.php?go=func&id=223 |
Re: How make a automatic enable / disable plugin
Thanks! I'll test now :)
|
Re: How make a automatic enable / disable plugin
The only issue I see is whether or not the plugin will be able to unpause itself while in a paused state.
|
Re: How make a automatic enable / disable plugin
1 Attachment(s)
Yes, I compiled and tested now...
It pause, but no unpause :( This is parts of my code: Code:
new cvar_automatic;PS: Search for //AUTOMATIC in the source, I put this to find more quicky my modifications... Quote:
This is my second modification in a plugin, the first I only translated the KnifeDuel to Pt_Br... |
Re: How make a automatic enable / disable plugin
Give this a shot.
Code:
|
Re: How make a automatic enable / disable plugin
Thanks MAN!!! Works perfectly!!!
|
| All times are GMT -4. The time now is 03:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.