Respawn a vehicle? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Respawn a vehicle? (
/showthread.php?tid=123792)
Respawn a vehicle? -
Torran - 27.01.2010
How would i do that?
Like whats the main bit,
Maybe DestroyVehicle then, CreateVehicle?
But how would i do it, For specific vehicle though,
Just the main bit not the whole code
Re: Respawn a vehicle? -
Kinetic - 27.01.2010
first you gotta find the vehicle id, then destroy that vehicle, then create the vehicle again. Keep in mind that sometimes this will throw your vehicle id system out of whack.
Re: Respawn a vehicle? -
Correlli - 27.01.2010
There isn't any need to re-create it, just use
SetVehicleToRespawn function.
Re: Respawn a vehicle? -
biltong - 27.01.2010
How do you do that for every vehicle though? I've got about 1900 vehicles in my GM!
Re: Respawn a vehicle? -
Correlli - 27.01.2010
pawn Код:
for(new v = 1; v <= MAX_VEHICLES; v++) SetVehicleToRespawn(v);
Re: Respawn a vehicle? -
biltong - 27.01.2010
<3 (no homo)
Thanks dude!