Disable nametag - 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: Disable nametag (
/showthread.php?tid=355651)
Disable nametag -
Garc1a - 30.06.2012
I'm creating a mask script, when a player is wearing a mask, their nametag isn't there. How can I do this?
I know:
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer but that disables everyone else's client side.
Re: Disable nametag -
Toreno - 30.06.2012
This is all you need.
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(playerid))
{
continue;
}
ShowPlayerNameTagForPlayer(i, playerid, false);
/*
i all players online
playerid a specific player that uses /mask
false hide name tag
*/
}
EDIT: https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer - OnPlayerStreamIn is important public.
Re: Disable nametag -
Garc1a - 30.06.2012
Quote:
Originally Posted by Toreno
This is all you need.
pawn Код:
for(new i; i < MAX_PLAYERS; i++) { if(!IsPlayerConnected(playerid)) { continue; }
ShowPlayerNameTagForPlayer(i, playerid, false); /* i all players online playerid a specific player that uses /mask false hide name tag */ }
EDIT: https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer - OnPlayerStreamIn is important public.
|
Doesn't that disable everybodies nametags? I want it so that the individual player's nametag is switched off for everyone else.
Re: Disable nametag -
Toreno - 30.06.2012
If you switch between "i" and "playerid", it will hide everyone's for this playerid. Use what I posted, it should work properly.