How To add Player Color
#1

Код:
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
Reply
#2

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.
Reply
#3

Thanks again brother
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)