Raised This Month: $ Target: $400
 0% 

Make player invisible to one person


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-24-2008 , 03:35   Make player invisible to one person
Reply With Quote #1

Alright, I've searched around and tried multiple things but can't get only one player to see someone invisible.

I've stumble across this thread - and no, it doesn't work for me.
http://forums.alliedmods.net/showthread.php?t=25624

I even changed the code so it should (so I think) set everyone invisible without checking if they should be or not.

PHP Code:
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_forward(FM_AddToFullPack"fwd_AddToFullPack");
}

public 
fwd_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
    if(!
player)
        return 
FMRES_IGNORED;
    
    
set_es(es_handleES_RenderModekRenderTransTexture);
    
set_es(es_handleES_RenderAmt0);
    
    return 
FMRES_IGNORED;

That does not work... Please someone let me know what is wrong. I'm about to pull my hair out!!!
hlstriker is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 01-24-2008 , 03:39   Re: Make player invisible to one person
Reply With Quote #2

Hook FM_AddToFullPack post.
If that doesn't work, then the render settings you're using are the wrong ones.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
Old 01-24-2008, 04:03
hlstriker
This message has been deleted by hlstriker. Reason: forum glitches!
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 01-24-2008 , 04:06   Re: Make player invisible to one person
Reply With Quote #3

Ah, working much better now

Thanks a million Wilson.
hlstriker is offline
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