Disable nametags for players but not for admins? | +rep - 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 nametags for players but not for admins? | +rep (
/showthread.php?tid=576383)
Disable nametags for players but not for admins? | +rep -
NickMirra - 03.06.2015
Hello, i'd first like to thank everyone who decides to contribute to this scripting help. I will plus rep everyone for trying to help(:
I've noticed lots of metagame with the nametags, i'd like to disable the nametags in all, but only admins level 1 and up can be able to see nametags to ensure player is no dming.
I dont know what this code would be under.
Re: Disable nametags for players but not for admins? | +rep -
J0sh... - 03.06.2015
PHP код:
foreach(new i : Player) //Do this everytime someone connects, and do it the opposite
{
ShowPlayerNameTagForPlayer(playerid, i, false);
ShowPlayerNameTagForPlayer(i, playerid, false);
}
You would do the same for admins. Like on his account loaded Show him the name tags.