18.12.2014, 04:36
So I have this issue "ShowPlayerNameTagForPlayer" I'm trying to turn off the nametag for the player that used the command, and so far it does indeed turn them off, but my problem is when another player teleports to me (admin) or uses a teleport, I'm not sure.. but I think when they join too my nametag is shown or shows back up, I know I'm missing something here..but I have no idea what, any help would be appreciative.
and before you send me to the SA-MP Wiki.. I've already been there and done that and finally gave up, and came here for help.
and there's nothing else to "ShowPlayerNameTagForPlayer" except these two commands.
Here is my code:
and before you send me to the SA-MP Wiki.. I've already been there and done that and finally gave up, and came here for help.
and there's nothing else to "ShowPlayerNameTagForPlayer" except these two commands.
Here is my code:
Код:
CMD:hidetag(playerid, params[]) { LoginCheck(playerid); LevelCheck(playerid, 4); for(new i=0; i<MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false); SendClientMessage( playerid, COLOR_CHAT, "You have {AFAFAF}disabled{FF0060} your {AFAFAF}nametag{FF0060}, to re-enable it you must use {AFAFAF}/showtag{FF0060}." ); return 1; } CMD:showtag(playerid, params[]) { LoginCheck(playerid); LevelCheck(playerid, 4); for(new i=0; i<MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, true); SendClientMessage( playerid, COLOR_CHAT, "You have {AFAFAF}enabled{FF0060} your {AFAFAF}nametag{FF0060}." ); return 1; }