I am very confused as to how this thing works in AMXX. In a module, you would return a value of either MRES_IGNORED (To render the model to said player) or MRES_SUPERCEDE (To not render). I don't really want to set the rendering mode, because it doesn't even work. I am only trying to show/hide models to certain players with return values. Is it possible?
I don't understand how the AMXX equivalent works. Not many threads are correct nor provide enough detail about it.
PHP Code:
public FWAddToFullPackPost(es_handle, e, ent, host, hostflags, player, pset) {
if (!player) // Check whether target ent is player? Idk...
return FMRES_IGNORED;
if (KeyEnt(ent) && KeyPlayer(player))
return FMRES_SUPERCEDE; // Don't render key ent to key player
return FMRES_IGNORED;
}
The entities show whenever the second if statement is true or false and should only show if it's false.
Tried using 0 and 1 as return values. Nothing.