Hide name problem. (Mask) -
Guso - 23.12.2009
Hello I'm experiencing a very irritating problem let me give a example of the problem.
Paul uses /mask (( His name hides, that works ))
Pauls name get replaced with MASK_8221( Random numbers)
Johnny joins the server and he can see Pauls name tag, but in the text Pauls name will show up with Mask.
Could anybody help me with creating a pmaskuse checker so that when people connect it will check if players are masked and then hide their name
here is the script if players are using mask =
Код:
if(PlayerInfo[playerid][pMaskuse] == 1)
Could anybody help me
?
Re: Hide name problem. (Mask) -
MadeMan - 24.12.2009
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && i != playerid && PlayerInfo[i][pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
}
Re: Hide name problem. (Mask) -
Hollywood - 24.12.2009
I also get this problem, Also if they enter like a business or something their name tag will show again.
Re: Hide name problem. (Mask) -
woot - 24.12.2009
You always need to re-append the ShowNameTagForPlayer when "OnPlayerStreamIn" is called.
Re: Hide name problem. (Mask) -
Guso - 24.12.2009
Quote:
Originally Posted by MadeMan
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && i != playerid && PlayerInfo[i][pMaskuse] == 1) { ShowPlayerNameTagForPlayer(playerid, i, false); } }
|
I added this on onplayerconnect and in the /mask command, problem still happens
Any ideas?
When i use the commands /gotosanfierro and then /gotolossantos i can see their name again.
Re: Hide name problem. (Mask) -
MadeMan - 25.12.2009
Quote:
Originally Posted by //exora
You always need to re-append the ShowNameTagForPlayer when "OnPlayerStreamIn" is called.
|
Re: Hide name problem. (Mask) -
Guso - 29.12.2009
Quote:
Originally Posted by MadeMan
Quote:
Originally Posted by //exora
You always need to re-append the ShowNameTagForPlayer when "OnPlayerStreamIn" is called.
|
|
I searched for that in my script, it isn't even used :/
its marked in with /* */ any other ideas?
Its only when they enter exit a shop/building/house.
Found a nametimer in another script "Gta-RP"
But when i compile i get this
C:\Users\GuSo\Desktop\test.pwn(29255) : error 017: undefined symbol "GetPointDistanceToPointExMorph"
Any ideas what it is?
Re: Hide name problem. (Mask) -
MadeMan - 29.12.2009
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid)
{
if(PlayerInfo[playerid][pMaskuse] == 1)
{
ShowPlayerNameTagForPlayer(forplayerid, playerid, false);
}
return 1;
}
EDIT: are you using 0.2 or 0.3 script?
Re: Hide name problem. (Mask) -
Guso - 29.12.2009
Quote:
Originally Posted by MadeMan
pawn Код:
public OnPlayerStreamIn(playerid, forplayerid) { if(PlayerInfo[playerid][pMaskuse] == 1) { ShowPlayerNameTagForPlayer(forplayerid, playerid, false); } return 1; }
EDIT: are you using 0.2 or 0.3 script?
|
0.3
I'll test the thing you just wrote, it compiled with no errors