SA-MP Forums Archive
Onplayertext problem. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Onplayertext problem. (/showthread.php?tid=149230)



Onplayertext problem. - 0ne - 21.05.2010

I made onplayer text to show a guys message with id and VIP or not vip, and it sends the msg to all but the msg is all in white, i want my name to be color that i have on TAB? How to do it?


Re: Onplayertext problem. - [MWR]Blood - 21.05.2010

Use GetPlayerColor.
https://sampwiki.blast.hk/wiki/GetPlayerColor


Re: Onplayertext problem. - 0ne - 21.05.2010

example code please?


Re: Onplayertext problem. - [MWR]Blood - 21.05.2010

pawn Код:
new string[256];
format(string,sizeof(string),"%s",GetPName(playerid));
SendClientMessageToAll(GetPlayerColor(playerid),string);
Untested