Multiple IsPlayerInRangeOfPoint
#3

A global timer that loops through connected players (foreach) and checks if each player is in range will be much better than using OPU callback.

If you want to do the same thing when the player is in range of one of those:
pawn Код:
// an example:
if (IsPlayerInRangeOfPoint(playerid, range, x, y, z)
    || IsPlayerInRangeOfPoint(playerid, range, x, y, z)
    || IsPlayerInRangeOfPoint(playerid, range, x, y, z)
    || IsPlayerInRangeOfPoint(playerid, range, x, y, z)
    || IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
    // code..
}
If you want to check for different points and do different things:
pawn Код:
// an example:
if (IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
    // code..
}
else if (IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
    // code..
}
else if (IsPlayerInRangeOfPoint(playerid, range, x, y, z))
{
    // code..
}
Reply


Messages In This Thread
Multiple IsPlayerInRangeOfPoint - by TheSimpleGuy - 30.05.2014, 16:28
Re : Multiple IsPlayerInRangeOfPoint - by S4t3K - 30.05.2014, 16:38
Re: Multiple IsPlayerInRangeOfPoint - by Konstantinos - 30.05.2014, 16:40
Re: Multiple IsPlayerInRangeOfPoint - by TheSimpleGuy - 30.05.2014, 16:42
Re : Multiple IsPlayerInRangeOfPoint - by S4t3K - 30.05.2014, 16:44
Re: Multiple IsPlayerInRangeOfPoint - by TheSimpleGuy - 30.05.2014, 16:46
Re : Multiple IsPlayerInRangeOfPoint - by S4t3K - 30.05.2014, 16:48
Re: Multiple IsPlayerInRangeOfPoint - by TheSimpleGuy - 30.05.2014, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)