SA-MP Forums Archive
Removing Colors in Player Names - 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: Removing Colors in Player Names (/showthread.php?tid=600194)



Removing Colors in Player Names - eikzdej - 05.02.2016

Hi! I've seen some servers change the color names to white, how can i change that? Thanks!


Re: Removing Colors in Player Names - jlalt - 05.02.2016

PHP код:
public OnPlayerSpawn(playerid) return SetPlayerColor(playerid,0xFFFFFFAA); 
https://sampwiki.blast.hk/wiki/SetPlayerColor
https://sampwiki.blast.hk/wiki/OnPlayerSpawn


Re: Removing Colors in Player Names - itsCody - 05.02.2016

Set it under spawn? Unless you have some player color system.
SetPlayerColor(playerid, -1);


Re: Removing Colors in Player Names - eikzdej - 05.02.2016

Thank you!


Re: Removing Colors in Player Names - GangstaSunny - 05.02.2016

@jlalt posted a good solution, but you should add this under OnPlayerConnect, so the server only have to do this one time and not everytime if the player is spawning.