Call command from another plugin
Hey guys! I am wrinting a plugin, and in it I wanted to call a command "give_item" from a different plugin, frostnade.amxx. I tried looking through a few commands such as callfunc_being but I couldn't figure out. Could someone point me in the right direction? Thank you
|
Re: Call command from another plugin
You can't call an amxmodx native like give_item() which is included in fun module, useless? You must call a custom public function. Lets say you have the following public function in frostnade.amxx plugin
PHP Code:
PHP Code:
|
Re: Call command from another plugin
I dont want to do a new thread to post , i want to understand this.
Alka if the public has more than 1 parameter. Ex: Code:
in another plugin i have Code:
Thanks, |
Re: Call command from another plugin
Well yeah, that's how it should look / works. :-)
|
Re: Call command from another plugin
Thanks!
|
Re: Call command from another plugin
I think callfunc_begin_i is faster than callfunc_begin, but i may be wrong.
PHP Code:
About frostnade, i think in last version there is a native that lets you give a nade. Edit : Nope :/ |
Re: Call command from another plugin
@Connor - g_iNoSilSetModel ? Shouldn't that be g_iSetvGlowFunctionIndex? O.o
|
Re: Call command from another plugin
Wow , Really thanks ConnorMcLeod & Alka :)
Only last question , in callfunc_begin_i , second parameter is the number with the server load the plugin ? or i'm wrong ? |
Re: Call command from another plugin
Quote:
Quote:
Basically you pass function index and plugin index. |
Re: Call command from another plugin
@Connor
Code:
Last edited by ConnorMcLeod; Today at 08:36 AM.@lucas - No problem. :-) |
| All times are GMT -4. The time now is 08:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.