/hidetag - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /hidetag (
/showthread.php?tid=575384)
/hidetag -
SoFahim - 26.05.2015
How to make a cmd for Hide head tags : Health, armor, name tag
I have a cmd for hidetag.
PHP код:
CMD:hidetag(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
foreach (new i : Player)
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
SendClientMessageEx(playerid, COLOR_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.
Re: /hidetag - justice96 - 26.05.2015
Код:
ShowPlayerNameTagForPlayer(playerid,i,0);
Try to change like that
Re: /hidetag -
Konstantinos - 26.05.2015
"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).
Re: /hidetag -
Beckett - 26.05.2015
pawn Код:
playerid Player who will see the results of this function
showplayerid Player whose name tag will be shown or hidden
Re: /hidetag -
SoFahim - 27.05.2015
Quote:
Originally Posted by justice96
Код:
ShowPlayerNameTagForPlayer(playerid,i,0);
Try to change like that
|
You understand* what i ask for?