Local chat
#4

Or use LimitGlobalChatRadius().

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;
}
Method for 0.3; You'll have to define the "COLOR" for it, and change it a bit.
Reply


Messages In This Thread
Local chat - by Mike Garber - 30.09.2009, 07:43
Re: Local chat - by curtisshakur - 30.09.2009, 08:44
Re: Local chat - by mamorunl - 30.09.2009, 08:50
Re: Local chat - by Calgon - 30.09.2009, 08:54
Re: Local chat - by Mike Garber - 30.09.2009, 10:55
Re: Local chat - by Calgon - 30.09.2009, 13:19
Re: Local chat - by agusfn20 - 30.09.2009, 13:43
Re: Local chat - by Calgon - 30.09.2009, 16:11
Re: Local chat - by silentkillerjoe - 01.10.2009, 04:10
Re: Local chat - by Abernethy - 01.10.2009, 04:47

Forum Jump:


Users browsing this thread: 1 Guest(s)