Quote:
Originally Posted by Stanford
So you want his name to appear in the chat as his color?, here's an example:
pawn Код:
public OnPlayerText(playerid, text[]) { if(AccountInfo[playerid][pColor] == 2) // or any number that represents red (u set these things) { new string[128], playername[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername); format(string,sizeof(string), "%s:"#COL_WHITE" %s", playername,text); } SendClientMessageToAll(COLOR_WHITE, string); return 1; }
Set the defintions of the colors.
hint: #COL_WHITE is a 0.3c color.
I hope I helped any feedback would be appreciated!
|
eRROR
Код:
warning 202: number of arguments does not match definition
Код:
GetPlayerName(playerid, playername);