14.05.2014, 12:51
like this?
pawn Код:
CMD:color(playerid,params[])
{
new tempcolor[32];
format(tempcolor, sizeof tempcolor, "0x%xFF", params);
strmid(tempcolor, tempcolor, 0, strlen(tempcolor), 32);
SetPlayerColor(playerid, tempcolor[0]);
printf("%s",tempcolor[0]); // for debugging
return 1;
}