02.03.2010, 05:00
How could i add the player's id into the chat?? So that it appears [id][player]:Text <----But stays with their teamcolor
public OnPlayerText(playerid,text[]){
new String[256];
format(String, 256, "(%d): %s", playerid, text);
SendPlayerMessageToAll(playerid,String);
return 0;// return 0 !!!! otherwise you get a double chat message
}
Originally Posted by [HiC
TheKiller ]
What's wrong with http://forum.sa-mp.com/index.php?top...8596#msg928596 ? |
public OnPlayerText(playerid, text[])
{
new str[160];
new name[32];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "%s(%d): %s", name, playerid, text);
SendClientMessageToAll(0xFFFFFFAA, str); // Replace the 0xFFFFFFAA (White) with some team color checking
return 0;
}
Originally Posted by Gozerr
pawn Код:
|
Originally Posted by [HiC
TheKiller ]
pawn Код:
|