Yes, but won't that execute that forward on all plugins that registered the native? Anyway, I think this should clear things up.
I'm creating a mod that has classes. I want to make it to where the class has special forwads such as when a person of the class spawns.
For example, when the create the class the author must use the SetForwards() native to define what forwards they want to use. Now in the module for the mod, when dispatch spawn is called, it gets the players id, checks if they have a class, gets the class, checks if the class has registered the forward (FW_SPAWN in this class, a binary bit), reterives the base amx structure, then executes the forward, which then I run into my problem, passing parameters. Here is an example.
Code:
#include<amxmodx>
#include<military>
new const PLUGIN = "Sample Class"
new const VERSION = "1.0"
new const AUTHOR = "Zenith77"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
//Don't worry about params
CreateClass(BR_ARMY, "Sample", "", TYPE_HUMAN, 5)
//What Forward to use
SetForwards(FW_ADD|FW_SPAWN) //FW_ADD will not be used in this sample...
}
public ClassSpawn(id) { //See I can't use the forward system or else this will be called on every plugin :/
//andfjknkajsnfdknakfdna
}
If you you can target and execute this on specific plugins with the forward system, please let me know. (The closest thing I saw was MF_RegisterSPForward() )
__________________