08.07.2011, 13:41
how to loop two team of players then compare if are close to each other?
like
somehow like this
like
pawn Код:
new team1[MAX_PLAYERS],team2[MAX_PLAYERS];
for(new x=0; x<MAX_PLAYERS;x++)
{
// if is player connected && team 1
x = team1[x];
}
for (new y=0; y<MAX_PLAYESR;y++)
{
// if is player connected && is team 2
y = team2[y];
}
if(Getdistancebetweenplayers(team1,team2)< 10)
{
print("ok.");
}
