Raised This Month: $ Target: $400
 0% 

Make a player invisible to one player


Post New Thread Reply   
 
Thread Tools Display Modes
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 03-19-2006 , 03:43  
Reply With Quote #11

Quote:
Originally Posted by amxx-op
this is the only things for it to run if you got this :
engine_amxx_i386.so
engine_amxx.dll
engine_amxx_amd64.so

---------------------------
fakemeta_amxx_i386.so
fakemeta_amxx.dll
fakemeta_amxx_amd64.so

----------------------------------
fun_amxx_i386.so
fun_amxx.dll
fun_amxx_amd64.so



if you got these running then you can use invisiblity
if you dont something will accure
I'm not stupid.

Quote:
Originally Posted by amxx-op
ok. well i,ve tested the plugin and noone sees me.

it,s either

invi_view
invi_stop
invi_start
invi_toggle on/off
invi_player name#/userid]
invi_everyone
invi_onlyonepersonsee
Where is the plugin?
__________________
Um, hi.
Ramono is offline
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-19-2006 , 04:46  
Reply With Quote #12

Quote:
Originally Posted by Twilight Suzuka
Self invisibility is a CLIENT SIDE method. You CANNOT make a player invisible to ONLY one player.
Freecode is offline
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
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 12-23-2006 , 07:33   Re: Make a player invisable to one player
Reply With Quote #14

Can you explain it a little more?

if i set invisible[1] to 1
and set viewInvisible[2] to 1
player with id 2 should see player with id 1 invisible.

thats all i need to do ?
__________________
Um, hi.

Last edited by Ramono; 12-23-2006 at 08:29.
Ramono is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-23-2006 , 17:46   Re: Make a player invisible to one player
Reply With Quote #15

Yes.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
nowalone
Junior Member
Join Date: Jan 2006
Location: norway
Old 07-18-2007 , 11:40   Re: Make a player invisible to one player
Reply With Quote #16

this doesnt work for me :S
nowalone is offline
Send a message via MSN to nowalone
_Master_
Senior Member
Join Date: Dec 2006
Old 07-20-2007 , 06:49   Re: Make a player invisible to one player
Reply With Quote #17

@ XxAvalanchexX: I haven't test it but I don't think it works... vbmenu_register("postmenu_419074", true);
_Master_ is offline
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 07-20-2007 , 12:10   Re: Make a player invisible to one player
Reply With Quote #18

you can make something visible for only one player, or something invisible for only one player...
thats not really hard with the es natives
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
potatis_invalido
BANNED
Join Date: Jul 2007
Location: 0 (world)
Old 07-21-2007 , 00:54   Re: Make a player invisible to one player
Reply With Quote #19

Sarcastic("You could make everyone blind or teleport everyone but one (the one who can see invisble things) away as soon as they see the invisible person (dont forget to block spectating). OMG! ITS POSSIBLE! POTATIS_INVALIDO, YOU ROCK!")
potatis_invalido is offline
Shaman
Senior Member
Join Date: Dec 2006
Location: Istanbul, Turkey
Old 08-03-2008 , 21:55   Re: Make a player invisible to one player
Reply With Quote #20

This didn't work for me (Half-Life):
PHP Code:
public forward_AddToFullPack(es_handleeentityhosthostflagsplayerpSet)
    {
    if(!
player || entity==host)
        return 
FMRES_IGNORED
    
    
if(ITEMTIMER[ITEM_INVISIBILITY][entity]>0.0)
        {
        
client_print(0print_chat"%i-%i-%i-%f"random_num(1099), hostentityITEMTIMER[ITEM_INVISIBILITY][entity])
        
//set_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0.0)
        
set_es(es_handleES_RenderFxkRenderFxGlowShell)
        
set_es(es_handleES_RenderColor, {000})
        
set_es(es_handleES_RenderModekRenderTransAlpha)
        
set_es(es_handleES_RenderAmt0.0)
        }
    
    return 
FMRES_HANDLED
    

I see the print and values look fine, but it changes nothing.

Edit:
It looks like it prevents any change. For example if the player is glowing green, he stays green.
__________________

Last edited by Shaman; 08-03-2008 at 22:15.
Shaman is offline
Send a message via ICQ to Shaman Send a message via AIM to Shaman Send a message via MSN to Shaman Send a message via Yahoo to Shaman
Old 08-03-2008, 22:01
Shaman
This message has been deleted by Shaman.
Reply



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 10:48.


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