View Single Post
Author Message
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 05-28-2021 , 11:20   AddToFullPack hide entity from specific player
Reply With Quote #1

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_handleeenthosthostflagsplayerpset) {

    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.

Last edited by redivcram; 05-28-2021 at 17:03.
redivcram is offline