Strange problem
#1

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(playeridi0);
    }
    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
Reply
#2

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).
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)