I was planning to also do this in FM_PlayerPreThink in one plugin and use the forward in the other plugins. Would it cost more resources by doing this?
Code:
#include <amxmodx>
#include <fakemeta>
new forward_PlayerPreThink, temp
public plugin_init()
{
register_forward(FM_PlayerPreThink , "fw_PlayerPreThink")
forward_PlayerPreThink = CreateMultiForward("user_prethink", ET_IGNORE, FP_CELL)
}
public fw_PlayerPreThink(id)
{
ExecuteForward(forward_PlayerPreThink, temp, id)
return FMRES_IGNORED
}
Info on the returns? When to use them and such.
Code:
#define ET_IGNORE 0 //ignore return val
#define ET_STOP 1 //stop on PLUGIN_HANDLED
#define ET_STOP2 2 //same, except return biggest
#define ET_CONTINUE 3 //no stop, return biggest
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.