Strange problem - 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: Strange problem (
/showthread.php?tid=664822)
Strange problem -
akib - 12.03.2019
I used
ShowPlayerNameTagForPlayer function to hid
only name above player's head
I used this function inside OnPlayerUpdate
PHP код:
public OnPlayerUpdate(playerid){
for(new i=0;i<MAX_PLAYERS;i++){
if(!IsPlayerConnected(i)) continue;
ShowPlayerNameTagForPlayer(playerid, i, 0);
}
return 1;
}
and it hides whole nametag -_-
How i can hide only player name?
P.S: I used a dynamic label text, that's why name is visible
Re: Strange problem -
NaS - 12.03.2019
It's only possible to hide all of it, not parts of it unfortunately.
Regarding your loop in OnPlayerUpdate, it shouldn't be neccessary to call it that often (or at all). You can turn off all nametags completely in OnGameModeInit by using ShowNameTags(0).
Re: Strange problem -
akib - 12.03.2019
Quote:
Originally Posted by NaS
It's only possible to hide all of it, not parts of it unfortunately.
Regarding your loop in OnPlayerUpdate, it shouldn't be neccessary to call it that often (or at all). You can turn off all nametags completely in OnGameModeInit by using ShowNameTags(0).
|
btw in many server there is something like /mask command which hides only name not healthbar or armour bar
Re: Strange problem -
SymonClash - 12.03.2019
Quote:
Originally Posted by akib
btw in many server there is something like /mask command which hides only name not healthbar or armour bar
|
Check this topic, probably can help you.
https://sampforum.blast.hk/showthread.php?tid=251816