/hidetag
#1

How to make a cmd for Hide head tags : Health, armor, name tag

I have a cmd for hidetag.
PHP код:
CMD:hidetag(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 1)
    {
  foreach (new 
Player)
        {
            
ShowPlayerNameTagForPlayer(iplayerid0);
        }
        
SendClientMessageEx(playeridCOLOR_GRAD1"You have hidden your name tag.");
        return 
1;
    }
    else
    {
        return 
Error(playerid"You aren't authorized to use this command");
    }

Tell me How to make a Hidetag cmd for admin. If a admin do that cmd , all players tag will hidden. Please Tell me .

Or something else to make this system.
Reply
#2

Код:
ShowPlayerNameTagForPlayer(playerid,i,0);
Try to change like that
Reply
#3

"playerid" and "i" must be switched. Take a look at the example: https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer

Anytime you are not sure for something, look at the samp wiki (most of the times will help you fix it).

EDIT: Sorry, justice96. I didn't see your post (didn't refresh the page).
Reply
#4

pawn Код:
playerid    Player who will see the results of this function
showplayerid    Player whose name tag will be shown or hidden
Reply
#5

Quote:
Originally Posted by justice96
Посмотреть сообщение
Код:
ShowPlayerNameTagForPlayer(playerid,i,0);
Try to change like that
You understand* what i ask for?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)