28.10.2012, 17:22
(
Последний раз редактировалось ryansheilds; 28.10.2012 в 18:46.
)
You will have to loop though all the vehicles, I don't think there's any other way.
You'll have to use:
The foreach include is for players only, it's a efficient way of this:
Edit: Ignore this - Inaccurate.
You'll have to use:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++)
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) {
if(IsPlayerConnected(i)) {
// Code
}
}