Quote:
Originally Posted by Michael B
Try this code:
PHP код:
CMD:changecolor(playerid, params[])
{
SetPlayerColor(playerid, RandomColors[random(200)]);
SendClientMessage(playerid, 0xFFFFFFFF, "{%06x}You have successfully changed your color to this message's color.",GetPlayerColor(playerid));
return 1;
}
|
yea but the color "{%06x}" will not be displayed because its format anyway it was SendClientMessageToAll I changed it and its working now but I have another problem
I have this
Код:
format(string, 15, "%s", pName(playerid));
TextDrawSetString(Text:nameTD, string);
TextDrawShowForPlayer(playerid, nameTD);
when you join its working perfectly but when another player joins it display his name
and the stock of pName
Код:
stock pName(playerid)
{
new GetName[24];
GetPlayerName(playerid, GetName, 24);
return GetName;
}