Is it possible to register 2 foewards of the same type like this?
Dont have a test server at the moment....
EDIT: What does post do, can i gain some cpu with it?
Code:
new fmid[2]
public plugin_init()
{
fmid[0] = register_forward(FM_PlayerPreThink, "forward_playerprethink1")
fmid[1] = register_forward(FM_PlayerPreThink, "forward_playerprethink2")
}
public forward_playerprethink1(id)
{
//something
return FMRES_IGNORED
}
public forward_playerprethink2(id)
{
//something
return FMRES_IGNORED
}
public stop1()
{
unregister_forward (FM_PlayerPreThink, fmid[0], 0)
}
public stop2()
{
unregister_forward (FM_PlayerPreThink, fmid[1], 0)
}