 |
|
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
|

06-20-2011
, 11:57
Re: Teoretical Help
|
#3
|
There are various possibilities:
- includes to share various constants on compile
- natives, usefull for making functions that can be called from sub-plugins (requires a include file)
- forwards, usefull if you want to hook something from the main plugin (I think it requries includes, see tutorials to be sure)
- xvars to share variables to other plugins like pcvars, only that you set the variable in the main plugin rather than using functions, this method is fast and I think it doesn't require includes.
- callfunc_* functions to call a function from a plugin, doesn't require a include or anything but I think it's pretty slow.
And ofc server cvars and commands, but those aren't really internal.
I belive you can change/remove tasks from another plugin, didn't really try it but there's a "outside" variable in change_task(), task_exists() and remove_task().
There are tutorials for all these methods.
If you have somehing specific you want to make, please do tell so we can help you pick the most efficient methods.
__________________
Last edited by Hunter-Digital; 06-20-2011 at 11:59.
|
|
|
|