Get a random player in range of position using loops
#9

Thanks for your code and i already use YSI as you can see in my post
Iter_Random(Player);
pawn Код:
stock GetRandomPlayerInRange(Float:X,Float:Y,Float:Z,Float:Range)
{
    new randPlayer;
    do {
        randPlayer = Iter_Random(Player);
        randPlayer = (IsPlayerInRangeOfPoint(randPlayer,Range,X,Y,Z) ? randPlayer : 255;
    }
    while (randPlayer == 255);
    return randPlayer;
}
Reply


Messages In This Thread
Get a random player in range of position using loops - by iJumbo - 04.09.2013, 20:34
Re: Good way to - by Vince - 04.09.2013, 22:32
Re: Good way to - by iJumbo - 04.09.2013, 23:00
Re: Good way to - by Kar - 05.09.2013, 02:00
Re: Good way to - by CyNiC - 05.09.2013, 03:48
Re: Get a random player in range of position using loops - by Pottus - 05.09.2013, 04:48
Re: Get a random player in range of position using loops - by iJumbo - 05.09.2013, 10:01
Re: Get a random player in range of position using loops - by CaveDweller - 05.09.2013, 11:24
Re: Get a random player in range of position using loops - by iJumbo - 05.09.2013, 11:30
Re: Get a random player in range of position using loops - by CaveDweller - 05.09.2013, 11:31

Forum Jump:


Users browsing this thread: 2 Guest(s)