06.11.2014, 16:58
Need something like this
so if player color Yellow in game in chat look like this
[ThC]Mr.Satna: Hello guys
Just with GetPlayerColor(playerid);
And if is @ global chat
how can i make when he type normal chat he is using that chat for local only for players in range of him .
and Bubble chat on local ..
so if player color Yellow in game in chat look like this
[ThC]Mr.Satna: Hello guys
Just with GetPlayerColor(playerid);
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[128], name[20];
if(text[0] == '@')//when player @ he is using global chat
{
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str), "((%s: %s))", name, text[1]);
SendClientMessageToAll(-1, str);
return 0;
}
return 1;
}
how can i make when he type normal chat he is using that chat for local only for players in range of him .
and Bubble chat on local ..