Raised This Month: $ Target: $400
 0% 

Make a player invisible to one player


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-23-2006 , 01:21   Re: Make a player invisable to one player
Reply With Quote #13

Message from the future: this is (now?) possible.

Code:
 #include <amxmodx>  #include <fakemeta>  new invisible[33];  new viewInvisible[33];  public plugin_init()  {     register_forward(FM_AddToFullPack,"fw_addtofullpack",1);  }  public fw_addtofullpack(es_handle,e,ent,host,hostflags,player,pSet)  {     if(!player) return FMRES_IGNORED;     if(invisible[ent] && !viewInvisible[host])     {         set_es(es_handle,ES_RenderMode,kRenderTransTexture);         set_es(es_handle,ES_RenderAmt,0);     }     return FMRES_IGNORED;  }

If a player is marked invisible, then they will only appear invisible to players marked viewInvisible.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS

Last edited by XxAvalanchexX; 12-28-2011 at 23:23.
XxAvalanchexX 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 07:54.


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