PHP Code:
#include <amxmodx>
#include <fakemeta>
new g_iEnt //assign the entity id here
new g_iPlayer //player id who should be able to see that entity
public plugin_init() {
register_forward(FM_AddToFullPack,"fwd_AddToFullPack", 1)
}
public fwd_AddToFullPack(entState, e, ent, host, iHostFlags, iPlayer, pSet) {
if (iPlayer)
return FMRES_IGNORED //ent is a player, ignore this forward
if (ent == g_iEnt && host != g_iPlayer) {
// host isnt g_iPlayer, he shouldnt see that entity
set_es(entState, ES_RenderMode, kRenderTransAlpha)
set_es(entState, ES_RenderAmt, 0)
}
return FMRES_IGNORED
}
try this for an example, ive never used addtofullpack and i didnt test it, so it might not work