Hide name problem. (Mask)
#1

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 ?
Reply
#2

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i) && i != playerid && PlayerInfo[i][pMaskuse] == 1)
    {
        ShowPlayerNameTagForPlayer(playerid, i, false);
    }
}
Reply
#3

I also get this problem, Also if they enter like a business or something their name tag will show again.
Reply
#4

You always need to re-append the ShowNameTagForPlayer when "OnPlayerStreamIn" is called.
Reply
#5

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.
Reply
#6

Quote:
Originally Posted by //exora
You always need to re-append the ShowNameTagForPlayer when "OnPlayerStreamIn" is called.
Reply
#7

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?
Reply
#8

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?
Reply
#9

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)