04.03.2014, 03:22
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.
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;
}