/tagoff - 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: /tagoff (
/showthread.php?tid=397787)
/tagoff -
MikeMike1997 - 06.12.2012
Can someone make me an admin command for tags off? I can edit it and that I just need a strcmp command for admins to /tagoff, so no one can see there tag but they can see everyone elses.
Thanks Mike
Re: /tagoff -
HireMe - 06.12.2012
If you mean hiding the name tag from a player you need something like this.
pawn Код:
if (strcmp("/tagoff", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);
GameTextForPlayer(playerid, "~W~Nametags ~R~off", 5000, 5);
return 1;
}
}
And if you want to hide the map icon just make the color invisible like this:
pawn Код:
if (strcmp("/tagoff", cmdtext, true) == 0)
{
if(IsPlayerAdmin(playerid))
{
SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
return 1;
}
}
Re: /tagoff -
MikeMike1997 - 06.12.2012
Ok what I meant was, That when you use /tagoff it only takes your tag off, So no one can see it.