Disable player name,id,health and armor. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Disable player name,id,health and armor. (
/showthread.php?tid=458427)
Disable player name,id,health and armor. -
StegooPs - 16.08.2013
Basically I want that for my RP server nothing will be visable above the players head, I know this is possible as I have seen this in a couple of servers/scripts so please help me!
I don't want a command or anything, I want some sort of a function that would disable nametags health and armor as soon as the player logs in/connects/joins/gamemodeint...
Re: Disable player name,id,health and armor. -
CrazyChoco - 16.08.2013
This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head. For use of a similar function like this on a global level, ShowNameTags function.
Source:
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
Re: Disable player name,id,health and armor. -
StegooPs - 16.08.2013
Thanks but I was hoping someone could give me an already-made code...
Re: Disable player name,id,health and armor. -
cray1100 - 16.08.2013
Put this into your "public OnGameModeInit()"
pawn Код:
SetNameTagDrawDistance(1.0);
It will limit the distance radius of nametags to 1,
In others words, the other players will only see their nametag and helath, and armour if they are REALLY close... Try it...
Re: Disable player name,id,health and armor. -
StegooPs - 16.08.2013
Thank you man, repped.
Re: Disable player name,id,health and armor. -
cray1100 - 16.08.2013
Your welcome and thanks,
...
Re: Disable player name,id,health and armor. -
cray1100 - 17.08.2013
Also, i think this will work too...