SA-MP Forums Archive
Making everyones name white? - 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: Making everyones name white? (/showthread.php?tid=424796)



Making everyones name white? - EiresJason - 23.03.2013

Hi, how would i make everyones nametag be white when they connect/spawn? Like in a DM server, peoples nametags may be white, red, purple, etc., but on a RP server you always see peoples nametags as white only, how would i set this please? Unless it's a simple edit on my part in "onPlayerSpawn", etc.

Thanks. I don't think i need to post any sort of code as i would expect it to be a simple edit but i can't figure it out.


Re: Making everyones name white? - Misiur - 23.03.2013

Usually the OnPlayerText is custom for RP servers, and the player colour isn't even used. https://sampwiki.blast.hk/wiki/SetPlayerColor - use 0xFFFFFFFF to get white colour


Re: Making everyones name white? - jotan. - 23.03.2013

Under OnPlayerConnect add SetPlayerColor(playerid,0xFFFFFFFF)


Re: Making everyones name white? - EiresJason - 23.03.2013

Thanks alot

Though putting it under the OnPlayerText callback didn't do anything, so i just placed it under onPlayerConnect and onPlayerSpawn