30.09.2009, 08:54
Or use LimitGlobalChatRadius().
Method for 0.3; You'll have to define the "COLOR" for it, and change it a bit.
pawn Код:
public OnPlayerText(playerid, text[])
{
new string[128], name[128];
GetPlayerName(playerid, name, sizeof(name));
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerStreamedIn(i, playerid))
{
format(string, sizeof(string), "%s has said: %s.", name, text);
SendClientMessage(i, COLOR, string);
}
}
return 1;
}