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



veichles - Jackass123 - 02.12.2009

how to make veichles


Re: veichles - notec100 - 02.12.2009

First you need to goto the position you would like to make cars and(preferably if you want cars be in a car while doing this to make the next steps easier) use the command /save [comment]. That will write the position into a file in your San Andreas Directory called savedpositions.txt. From there providing you did this in a vehicle the majority of the code is done for you, all you have to do is go https://sampwiki.blast.hk/wiki/AddStaticVehicle and find a better understanding on how that itty bit of code does. You can from that page find another page with the model ids to choose from. From there when you have the AddStaticVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1); ready the way you want it then you will go ahead and add it in under OnGameModeInIt. You may also do the /save many times and it will write to a new line so you can do literally 100 cars so you don't have to do them 1 by 1. Also if you are in a vehicle when using /save it will write with the AddStaticVehicle code where as if you are on foot it will AddPlayerClass. Hope that helps and good luck!



Re: veichles - Correlli - 02.12.2009

Check this first and then check these links:
- https://sampwiki.blast.hk/wiki/CreateVehicle
- https://sampwiki.blast.hk/wiki/AddStaticVehicle
- https://sampwiki.blast.hk/wiki/AddStaticVehicleEx