06.11.2010, 18:42
Take a look at this example I wrote a while ago:
pawn Код:
forward RespawnCars();
public RespawnCars()
{
new
needed[MAX_VEHICLES],
i,
v;
while(i != MAX_PLAYERS)
{
needed[GetPlayerVehicleID(i)] = (IsPlayerInAnyVehicle(i) == 1) ? (1) : (0);
++i;
}
while(v != MAX_VEHICLES)
{
if(!needed[v]) SetVehicleToRespawn(v);
++v;
}
return 1;
}