How To add Player Color - 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: How To add Player Color (
/showthread.php?tid=520995)
How To add Player Color -
ridhoswasta - 21.06.2014
Код:
new pname[24], str[128];
new string[128];
GetPlayerName(playerid,pname,sizeof(pname));
strreplacee(pname, '_',' ');
format(str, sizeof(str), "%s says: %s", pname, text);
ProxDetector(30.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
how to use player color with this script .
Example
PlayerColor = Green
And will be like this
George says: Testing
Re: How To add Player Color -
Konstantinos - 21.06.2014
pawn Код:
format(str, sizeof(str), "{%06x}%s{FFFFFF} says: %s", GetPlayerColor(playerid) >>> 8, pname, text);
Note that you must set the player's color otherwise it returns 0.
Re: How To add Player Color -
ridhoswasta - 21.06.2014
Thanks again brother