Question
#1

How can i make nobody could see anyone name tag??
Reply
#2

PHP Code:
ShowPlayerNameTagForPlayer(playeridifalse
Reply
#3

i put taht in on player connect but it still shows
Reply
#4

STRCMP:

PHP Code:
if (strcmp("/nametagsoff"cmdtexttrue) == 0)
{
     if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"You are not authorized to use that     command!");
    for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridifalse);
    
GameTextForPlayer(playerid"~W~Nametags ~R~off"50005);
    return 
1;

ZCMD:

PHP Code:
CMD:nametagsoff((playeridparams[]))
{
     if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"You are not authorized to use that     command!");
    for(new 
0MAX_PLAYERSi++) ShowPlayerNameTagForPlayer(playeridifalse);
    
GameTextForPlayer(playerid"~W~Nametags ~R~off"50005);
    return 
1;

Made it an admin cmd, You can Disable and Enable it yourself.
Reply
#5

You might want to check the wiki for more info on ShowPlayerNameTagForPlayer.

Calling that function alone won't do anything. try adding below to OnPlayerConnect callback:

Code:
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)