SA-MP Forums Archive
How would i to make a broken down 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: How would i to make a broken down vehicle? (/showthread.php?tid=270764)



How would i to make a broken down vehicle? - Shockey HD - 21.07.2011

Im creating a Zombie Death-match server, and i need vehicles on the side of the road. How would i to make it when they get into the car, Its completely unusable?

Kinda like the movie "The Happening" as you see on the cover, the cars are broken down, and or unusable. Why would i to do so?




AW: How would i to make a broken down vehicle? - Nero_3D - 21.07.2011

Use could use SetVehicleParamsEx

As example: Engine off, Lights off, Alarm off, Doors opend, Bonnet random, Boot closed, no objective icon
pawn Код:
new vehicleid = CreateVehicle(...)
//SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
SetVehicleParamsEx(vehicleid, false, false, false, false, random(2), false, false);



Re: AW: How would i to make a broken down vehicle? - Shockey HD - 21.07.2011

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Use could use SetVehicleParamsEx

As example: Engine off, Lights off, Alarm off, Doors opend, Bonnet random, Boot closed, no objective icon
pawn Код:
new vehicleid = CreateVehicle(...)
//SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
SetVehicleParamsEx(vehicleid, false, false, false, false, random(2), false, false);
So it would be like this.

new tractor = CreateVehicle (Cords and necassary crap)


Then underneath it

SetVehicleParamsEx(tractor,0,0,0,0,0,0,0,0,0) ? i put random Zeros, But the First 0 means Vehicle off?