20.02.2010, 10:27
Code I use
Well I want to make it so whenever player writes something, it makes PlayerName(id): text, and this code works... It gives whole messsage with player team color...
But I want it to make PlayerName with team color, and text with white color...
I tried using SendPlayerMessageToAll, and deleting name from the format string, it actually works.. except it gives outcome PlayerName
id): text (is there way I can remove 
Anyone can help please?
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[256],string[256];
GetPlayerName(playerid,name,255);
format(string,255,"%s(%d):%s",name,playerid,text);
SendClientMessageToAll(GetPlayerColor(playerid),string);
return 0;
}
But I want it to make PlayerName with team color, and text with white color...
I tried using SendPlayerMessageToAll, and deleting name from the format string, it actually works.. except it gives outcome PlayerName


Anyone can help please?