Raised This Month: $51 Target: $400
 12% 

Solved AddToFullPack hide entity from specific player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode