View Single Post
  #15  
Old 01-08-2011, 08:24 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by callimuc View Post
here i found this script:
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/stealth") {
    if (
player.alpha == 1)
      
triggerserver("gui",this.name,"SetStealth",0);
    else
      
triggerserver("gui",this.name,"SetStealth",1);
  }

but for some reason player can still see your name. i also tried like:
PHP Code:
    if (player.alpha == 1
player.alpha does not affect the player's name. My recommendation would be to set the player's name to "" on serverside, or use hidePlayer.
__________________
Reply With Quote