20.11.2013, 11:54
Ok so i have made this
But when player sends a text, playerid and playername are black. How do i get the color of player and it's id? I want the name and id's color display as what color the player class has. How to fix it, please Help!
pawn Код:
public OnPlayerText(playerid, text[])
{
new playertext[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(playertext, sizeof(playertext), "[%d]%s: {FFFFFF}%s", playerid, name, text);
SendClientMessageToAll(playerid, playertext);
return 0;
}