Jump to content

Help remove player name and health bar


midomido

Recommended Posts

hi , i am trying to make a script for death match in which you could earn stealth , invisible state for 60 seconds , but the player name and health bar make it very clear , how can i disable other players from seeing the hidden player's name and health bar ?

Link to comment

Back Sorry i Am bad Scripter xD

but test this

local rElement = getRootElement() 
addEvent("TheEventName", true) 
addEventHandler("TheEventName", rElement, 
function() 
setPlayerNametagShowing ( source, false ) 
setTimer( setPlayerNametagShowing, 60000, 1, true) 
end 
) 

Link to comment

Holsten, please, don't double-post, you could have used the "EDIT" button instead.

P.S: Your example is wrong.

addEvent("enableInvisible", true) 
addEventHandler("enableInvisible", root, 
   function(player) 
   setPlayerNametagShowing ( player, false ) 
   setTimer( setPlayerNametagShowing, 60000, 1, player, true) 
end 
) 
  
addCommandHandler("invisible", 
function (player) 
   triggerEvent("enableInvisible",player,player) 
end) 

When you type '/invisible' in the chat/client console it should trigger the event to make you 'invisible'.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...