Despawn all vehicles on the map? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Despawn all vehicles on the map? (
/showthread.php?tid=444251)
Despawn all vehicles on the map? -
Zion22be - 15.06.2013
I'm not to sure how I would do this. Basically, I just want to remove every single vehicle on the map (spawned or not) without them respawning, if this is possible. Thanks!
Re: Despawn all vehicles on the map? -
jtemple042996 - 16.06.2013
This will remove all vehicles:
pawn Code:
for(new i = 0; i < MAX_VEHICLES; i++){
DestroyVehicle(i);
}
Re: Despawn all vehicles on the map? -
ToiletDuck - 16.06.2013
remove vehicles under OnGamemodeInit.. remove all vehicles all you want to remove.