SendClientMessageToAll to only surrounding people
#3

You will need to do some editing:

pawn Код:
forward NearByMessage(playerid, color, string[]);
public NearByMessage(playerid, color, string[])
{
    new Float: PlayerX, Float: PlayerY, Float: PlayerZ;
    foreach(Player, i)
    {
        GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ);
        if(IsPlayerInRangeOfPoint(i, 12, PlayerX, PlayerY, PlayerZ))
        {
            if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i) && GetPlayerInterior(playerid) == GetPlayerInterior(i))
            {
                SendClientMessage(i, color, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
SendClientMessageToAll to only surrounding people - by jm2rock - 11.12.2010, 22:02
Re: SendClientMessageToAll to only surrounding people - by Redirect Left - 11.12.2010, 22:03
Re: SendClientMessageToAll to only surrounding people - by Scenario - 11.12.2010, 22:07

Forum Jump:


Users browsing this thread: 1 Guest(s)