Help-me please
#4

I recommend using Prox Detector;

Create a Prox Detector stock some where near the top of your script
pawn Код:
stock ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
        {
            SendClientMessage(i,color,string);
        }
    }
}
Then add on your OnPlayerText callback

pawn Код:
public OnPlayerText(playerid, text[])
{
    new
        message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    ProxDetector(30.0, playerid, message, -1);
    return 0;
}
For a in depth tutorial just look in tuts
Reply


Messages In This Thread
Help-me please - by Clarck - 25.11.2014, 01:10
Re : Help-me please - by MCZOFT - 25.11.2014, 01:32
Re: Help-me please - by Clarck - 25.11.2014, 02:13
Re: Help-me please - by Sparke - 25.11.2014, 02:16
Re : Help-me please - by MCZOFT - 25.11.2014, 02:25
Re: Help-me please - by Clarck - 25.11.2014, 02:37
Re: Help-me please - by PinkFloydLover - 25.11.2014, 02:40
Re: Help-me please - by Clarck - 25.11.2014, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)