23.03.2013, 17:25
(
Последний раз редактировалось fireboy; 23.03.2013 в 18:01.
)
hey, i need a help with my created command, that changes nick color, but when i type /tcolor 0xcc3333 (it's red) or whatever other hex color, it's sets to black.
so if you can help me, then please answer, i will appreciate it.
pawn Код:
if(strcmp("/tcolor", cmdtext, true, 6) == 0)
{
new coco[50];
coco=strtok(cmdtext, idx);
if (!strlen (coco))
{
SendClientMessage(playerid, 0xE6000055, "USE: /tcolour [COLOR(Example. 0xFFFF00AA]"); // Translated it to english :d
}
else
{
SetPlayerColor(playerid,strval(coco));
}
}
return 1;
}
