Raised This Month: $ Target: $400
 0% 

visiblity only with nightvision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mati009988
Member
Join Date: Jul 2009
Old 06-24-2010 , 13:44   visiblity only with nightvision
Reply With Quote #1

Hello,
When i use set_entity_visibility(id, 0) in code player is invisible.
How to do that when someone use night vision can see this men?
mati009988 is offline
Owner123
Member
Join Date: Jun 2010
Old 06-24-2010 , 14:09   Re: visiblity only with nightvision
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>

new bool:gInvisibilty[33]
public 
plugin_init()
{
    
register_plugin("Blah blah blah""0.666""Owner")
    
register_forward(FM_AddToFullPack"fwAddToFullPack")
}

public 
fwAddToFullPack(ent_stateeenthosthostflagsplayerpSet)
{
    if(
gInvisibilty[e] && !cs_get_user_nvg(host))
        return 
FMRES_SUPERCEDE
    
    
return FMRES_IGNORED

And use set_entity_visibility(id, 1).
__________________
Sorry for my bad english !
Owner123 is offline
mati009988
Member
Join Date: Jul 2009
Old 06-24-2010 , 16:09   Re: visiblity only with nightvision
Reply With Quote #3

does not work and are lag on server
mati009988 is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-24-2010 , 18:22   Re: visiblity only with nightvision
Reply With Quote #4

You want to make players visible only when they have nvg enabled?
__________________
xPaw is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 06-25-2010 , 02:17   Re: visiblity only with nightvision
Reply With Quote #5

He want see invisible peoples with nvg.
zirualas is offline
Send a message via Skype™ to zirualas
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 14:57.


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