Spawning a tuned 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: Spawning a tuned vehicle? (
/showthread.php?tid=192967)
Spawning a tuned vehicle? -
Face9000 - 24.11.2010
Is there any way to add ingame,pre-tuned vehicles?
Re: Spawning a tuned vehicle? -
BMUK - 24.11.2010
Yes.
Place this at the top (under the server includes)
1) Create the vehicle as usualy under OnGameModeInit using this
pawn Код:
tuner = AddStaticVehicle....
Look here:
https://sampwiki.blast.hk/wiki/AddStaticVehicle
After this line (once the vehicle has been created, maybe at the end of OnGameModeInit) you can use this
pawn Код:
AddVehicleComponent(tuner,1010); // You added nitro x 10 to your vehicle "tuner"
https://sampwiki.blast.hk/wiki/AddVehicleComponent
Re: Spawning a tuned vehicle? -
Face9000 - 24.11.2010
Well..
Thanks!
Re: Spawning a tuned vehicle? -
KeyWay - 25.11.2010
What about if i have Dynamic vehicle system?
Re: Spawning a tuned vehicle? -
Anthonyx3' - 25.11.2010
Quote:
Originally Posted by KeyWay
What about if i have Dynamic vehicle system?
|
Make the cars you want spawned tuned static?
Re: Spawning a tuned vehicle? -
KeyWay - 25.11.2010
Quote:
Originally Posted by Anthonyx3'
Make the cars you want spawned tuned static?
|
What do you mean