foreach (y_iterate) - select random player from the same team.
#5

Quote:
Originally Posted by Misiur
View Post
TORKQ: That's really old foreach syntax, you'll get deprecated warning. So:
pawn Code:
foreach(new targetid:Player)
Besides that, it's good.

OP: You can go a step further, using y_groups it'd be as easy as
pawn Code:
Iter_Random(GroupPlayers[GroupOfPlayersOnYourTeam]);
It doesn't matter if it's old or not, it still usable and works fine in newest Y_ISI libraries (AFAIK)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)