View Full Version : visiblity only with nightvision
mati009988
06-24-2010, 13:44
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?
Owner123
06-24-2010, 14:09
#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_state, e, ent, host, hostflags, player, pSet)
{
if(gInvisibilty[e] && !cs_get_user_nvg(host))
return FMRES_SUPERCEDE
return FMRES_IGNORED
}And use set_entity_visibility(id, 1).
mati009988
06-24-2010, 16:09
does not work and are lag on server
You want to make players visible only when they have nvg enabled?
zirualas
06-25-2010, 02:17
He want see invisible peoples with nvg.
vBulletin® v3.8.7, Copyright ©2000-2024, vBulletin Solutions, Inc.