SA-MP Forums Archive
Car system - 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)
+--- Thread: Car system (/showthread.php?tid=390175)



Car system - MatZZPL - 05.11.2012

Hi everyone, i have been looking for a car system that i can edit / remake or even a simple tutorial to tell me how to create one and save it in .ini.... I know a little about scripting but i'm no professional I tried to look at AVS but its too much to edit + would rather have it in my Gamemode. Also i don't like the way you sit in a can and buy one so i would change it to dialogs..

Any ideas? Links? Anything would be great.. ANY help +rep'ing..


Re: Car system - JakeMiller - 05.11.2012

This Filterscript is very simple but saves time.

This is a car creating system by me,to be used ingame, it will save a car with a command and will load it on server restart.
You will need a "savevehs" (not including ") folder in scriptfiles for this to work. This system will save the vehicle model, its position with angle, its Color1 and Color2.
It basically removes the need for using CreateVehicle because this will do that work

Download

https://sampforum.blast.hk/showthread.php?tid=91354
https://sampforum.blast.hk/showthread.php?tid=120356

https://sampforum.blast.hk/showthread.php?tid=58458

(i don't own this)


Re: Car system - MatZZPL - 05.11.2012

Thanks man, but i would need some examples as im using zcmd and sscanf already and i dont have a clue where to start? any exaples please anyone?


Re: Car system - MatZZPL - 05.11.2012

Okay, i'm kind of starting of with it by my self BUT i would need to know this:

If the script creates a vehicle how do i give that vehicle id to a player? that only he can control it? Would it be vehicleid in game? for e.g if my infernus was id 1, the script would read if you owe a vehicle it would spawn that vehicle and how does it know what car to unspawn? Any useful functions? Please help


Re: Car system - MatZZPL - 06.11.2012

Anyone? Just need to know how to create a vehicle and add the vehicle id to players account. (( IM USING YSI)) i know how to save vehicles position and stuff just that bit im stuck on ^

@ Okay nevermind im going to save each car on different file. Each file will save colour, health, carid, positions and so on. Then when it spawns it will create new car with those selected options and possitions. If anyone can help in anyway- give me few tips or what ever i would be more then happy to read them.


Thanks in advance


Re: Car system - flake50 - 06.11.2012

Weldon, Good job all the above participants perform well and expose their ideas awesomely. Its clear me too, actually I was also looking for the same info so Its my goodness to have this .Keep it up guys.
Cheer!


Re: Car system - MatZZPL - 06.11.2012

haha, i thought i might post what im going to do.. As there isn't too many tutorials about car systems? if even there is one so as im progressing i will keep this up to date..