14.01.2017, 16:35
Hello guys..
I wanted to add player id after his nickname in chat so i done this :
How is it possible to make two color message ? Player nick and id should be same color as his team and the message should be white..
I wanted to add player id after his nickname in chat so i done this :
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYER_NAME],msg[128];
GetPlayerName(playerid,name,sizeof(name));
format(msg,sizeof(msg),"%s(%i):%s",name,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),msg);
return 0;
}