try this, just a quick thought script, haven't tested.
PHP Code:
function onCreated()
{
this.admins = { "Owner", "Events Team", "LAT"};
}
function onActionServerside()
{
if ( params[ 0] == "stealth")
{
player.clientr.stealthMode = !player.clientr.stealthMode;
for ( temp.p : allplayers)
temp.p.triggerclient( "gui", this.name, "stealth", player.index, player.clientr.stealthMode, ( temp.p.guild in this.admins));
}
}
//#CLIENTSIDE
function onCreated()
{
this.canUse = { "Owner" ,"LAT"};
}
function onKeyPressed( temp.code, temp.key, temp.scancode)
{
if ( temp.key == "5" && player.guild in this.canUse)
triggerserver( "gui", this.name, "stealth");
}
function onActionClientside()
{
if ( params[ 0] == "stealth")
players[ params[ 1]].alpha = float( !params[ 3]? params[ 2]: ( params[ 2]? 0.75: 1));
}