19.06.2013, 01:08
Can you please show the function RespawnNearbyVehicles?
You can use this stock when you loop through all the vehicles to respawn them.
You can use this stock when you loop through all the vehicles to respawn them.
pawn Код:
stock IsVehicleOccupied(vehicleid)
{
for(new i = 0; i < MAX_VEHICLES; i++)
{
if(IsPlayerInAnyVehicle(i))
{
if(GetPlayerVehicleID(i) == vehicleid) return 1;
else return 0;
}
}
}