SA-MP Forums Archive
Tuned Car - 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: Tuned Car (/showthread.php?tid=200761)



Tuned Car - Osviux - 19.12.2010

How to add a tuned car into the server?


Re: Tuned Car - Face9000 - 19.12.2010

Place this at the top (under the server includes)

pawn Код:
new tuner;
1) Create the vehicle 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