Blaawee Posted November 9, 2011 Posted November 9, 2011 hi guys i see in some servers admin can hide his name and his health bar but i don't know how , can some one tell me how ? is it a script or including the admin resource, or it's a command ?
Blaawee Posted November 9, 2011 Author Posted November 9, 2011 no! i didn't mean that , i mean like this : and radar Blips attaching to him like this :
12p Posted November 9, 2011 Posted November 9, 2011 setPlayerNametagShowing, still. The other thing is modified "playerblips", which is based on createBlipAttachedTo
TAPL Posted November 9, 2011 Posted November 9, 2011 Blaawee, we are doing a magic in my server and because the magic the name and health bar hidden
^Dev-PoinT^ Posted November 9, 2011 Posted November 9, 2011 its esay root = getRootElement ( ) players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) function PlayerJoin () setPlayerNametagShowing ( source, false ) showPlayerHudComponent ( source, "health", false ) end addEventHandler ( "onPlayerJoin", root, PlayerJoin )
mjau Posted November 9, 2011 Posted November 9, 2011 Lol with 114 posts i think you should know that just change the event handler to a command handler
Chlorek Posted November 9, 2011 Posted November 9, 2011 what about to make it with command ? Is it difficult to read wiki? https://wiki.multitheftauto.com/wiki/AddCommandHandler
^Dev-PoinT^ Posted November 9, 2011 Posted November 9, 2011 Read The Wiki Hud function and setPlayerNameTagShowing root = getRootElement ( ) players = getElementsByType ( "player" ) function ResourceStart ( name, root ) for k,v in ipairs ( players ) do setPlayerNametagShowing ( v, false ) end end addEventHandler ( "onResourceStart", root, ResourceStart ) function PlayerJoin () setPlayerNametagShowing ( source, false ) showPlayerHudComponent ( source, "health", false ) end addCommandHandler ( "hide", PlayerJoin )
HoLsTeN Posted November 9, 2011 Posted November 9, 2011 function BlipAttachedToMyPlayer ( source ) createBlipAttachedTo ( source , 52 ) outputChatBox("Now You Have Blip Attached To Your Player",source,255,0,0) end addCommandHandler ( "blip", BlipAttachedToMyPlayer )
Maurize Posted November 10, 2011 Posted November 10, 2011 LLOLWUT :DDD Take this: addCommandHandler( "toggleHud", function( thePlayer, cmd, status ) if ( status == "off" ) then setPlayerNametagShowing ( thePlayer, false ) -- this is for hiding the name of a player showPlayerHudComponent ( thePlayer, "health", false ) -- "health" can be set to for example ammo & more... elseif ( status == "on" ) then setPlayerNametagShowing ( thePlayer, true ) -- this is for hiding the name of a player showPlayerHudComponent ( thePlayer, "health", true ) -- "health" can be set to for example ammo & more... end end ) and THIS: addCommandHandler( "getBlipMan", function( thePlayer, cmd ) createBlipAttachedTo ( thePlayer, 52 ) end )
Blaawee Posted November 10, 2011 Author Posted November 10, 2011 miss understood That's not what i meean :@ i mean is there any way to hide my name and health Bar , like glitch
12p Posted November 10, 2011 Posted November 10, 2011 setPlayerNametagShowing Have you even tried it?
Blaawee Posted November 10, 2011 Author Posted November 10, 2011 LOOOOOOOL :@ setPlayerNametagShowing where i have to try it tell me if i'm not admin ???
Charlie_Jefferson Posted November 10, 2011 Posted November 10, 2011 He wants a glitch that will make him invisible, disable his nametag and all kinds of admin powers, without being admin on a server. I say that's impossible, unless you find a bug in the script.
CapY Posted November 10, 2011 Posted November 10, 2011 And all kinds of admin powers, without being admin on a server. He's drunk for sure. EDIT: If you want to change your ped alpha, use this resource : https://community.multitheftauto.com/index.php?p= ... ls&id=1704
Castillo Posted November 10, 2011 Posted November 10, 2011 addCommandHandler("hide", function (thePlayer) local account = getPlayerAccount(thePlayer) if not account or isGuestAccount(account) then return end local accountName = getAccountName(account) if not isObjectInACLGroup("user."..accountName,aclGetGroup("Admin")) then return end if isPlayerNametagShowing(thePlayer) then setPlayerNametagShowing(thePlayer, false) setElementAlpha(thePlayer, 0) else setPlayerNametagShowing(thePlayer, true) setElementAlpha(thePlayer, 255) end end)
Blaawee Posted November 11, 2011 Author Posted November 11, 2011 wrong wrong wrong wrong and not visible and i can be visible with command "ap " what i mean is there any way to make no one see my name and my health bar in freeroam Gamemode :@
Blaawee Posted November 11, 2011 Author Posted November 11, 2011 Solidsnake14 i'don't want a script to hide my name ,i'm just asking is there any way without scripting ???
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now