ShowPlayerNameTagForPlayer
#1

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
  ShowPlayerNameTagForPlayer(i, playerid, false);
This is part of the function for my mask system, yet it doesnt work O_o
Reply
#2

other way around
Код:
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false); // to hide everyone

and

for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true); // to show everyone
Reply
#3

or you could use

Код:
ShowPlayerNameTagForPlayer(i, playerid, 0);
works just fine in my server
Reply
#4

I mean when player does /mask, I want it to disable showing their name.
Reply
#5

as i said above

Not showing name

Код:
ShowPlayerNameTagForPlayer(i, playerid, 0);
Show name

Код:
ShowPlayerNameTagForPlayer(i, playerid, 1);
Reply
#6

Allright I'll give it a try
Reply
#7

Wiki:
Quote:

Parameters:
ShowPlayerNameTagForPlayer(playerid, showplayerid, show)

par 1 (playerid): The playerid is show/hide his name tag for showplayerid.
par 2 (showID): The id to have visual effect on.

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid,i,0);
}
Reply
#8

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Wiki:


par 1 (playerid): The playerid is show/hide his name tag for showplayerid.
par 2 (showID): The id to have visual effect on.

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid,i,0);
}
Thanks for this Hiddos
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)