Hiding playerid's name tag upon crouching?
#1

Hello. I'm looking to create a system where the player (playerid.) who is crouching will have their nametag hidden until they stand back up. I've looked at the wiki, but I'm not quite understanding. Here is what I have so far, which I know is incorrect. How would I do this?

Thanks.

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK)
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(playerid, i, false);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Hiding playerid's name tag upon crouching? - by rangerxxll - 04.03.2014, 03:22
Re: Hiding playerid's name tag upon crouching? - by Nurgle4 - 04.03.2014, 04:24
Re: Hiding playerid's name tag upon crouching? - by Crayder - 04.03.2014, 04:45
Re: Hiding playerid's name tag upon crouching? - by rangerxxll - 04.03.2014, 04:49
Re: Hiding playerid's name tag upon crouching? - by rangerxxll - 04.03.2014, 05:23
Re: Hiding playerid's name tag upon crouching? - by Crayder - 04.03.2014, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)