A question
#5

pawn Код:
new Float:posx, Float:posy, Float:posz;
GetPlayerPos(playerid, posx, posy, posz);

for(new i=0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(IsPlayerInRangeOfPoint(i, 5.0, posx, posy, posz))
        {
           
        }
    }
}
This checks if any player is in 5.0 distance. I can't make it for teams because I don't know how you define your teams.
Reply


Messages In This Thread
A question - by armyoftwo - 03.01.2010, 15:20
Re: A question - by shady91 - 03.01.2010, 15:21
Re: A question - by armyoftwo - 03.01.2010, 15:23
Re: A question - by GforceNL - 03.01.2010, 15:24
Re: A question - by MadeMan - 03.01.2010, 16:08

Forum Jump:


Users browsing this thread: 1 Guest(s)