PHP Code:
//Please dont steal this script from the forums, forum viewers.
function onActionServerSide()
{
if (params[0] == "stealth")
{
for (p : players)
{
this.admins = {"Owner","Events Team","LAT"};
if (!(p.guild in this.admins))
{
p.triggerclient("gui",this.name,"stealth",params[2],params[1]);
}
else
{
temp.p2 = params[2];
if (findplayer(temp.p2).clientr.on = 1)
{
p.triggerclient("gui",this.name,"stealth",params[2],0.75);
}
else
{
p.triggerclient("gui",this.name,"stealth",params[2],1);
}
}
}
}
}
//#CLIENTSIDE
function onKeyPressed(code, key, scancode)
{
if (key == "5")
{
this.canuse = {"Owner","LAT"};
if (player.guild in this.canuse)
{
if (this.on == false)
{
this.on = true;
triggerserver("gui",this.name,"stealth",0,player.account);
sleep(0.5);
player.alpha = 0.75;
client.message.add("Stealth Mode On");
}
else
{
this.on = false;
triggerserver("gui",this.name,"stealth",1,player.account);
sleep(0.5);
player.alpha = 1;
client.message.add("Stealth Mode Off");
}
}
}
}
function onActionClientSide()
{
if (params[0] == "stealth")
{
findplayer(params[1]).alpha = params[2];
}
}
This has been added to all players...
The problem is that the other admins who are defined in this.admins, only see us other stealthed admins with alpha 1, not alpha 0.75 which is a problem because you don't know if their in stealth, though other players can not see the player that is in stealth.