05.09.2013, 11:30
Thanks for your code and i already use YSI as you can see in my post
Iter_Random(Player);
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;
}