Help with (/givecar) command
#4

There is a way, like always. I'm not going to write the whole script for you because i want you to that yourself, so you can learn how to make things like this. You can use this forum to find some good car ownership filterscript, such as "Advanced vehicle ownership" or something like that. Then you can try to copy these things to your script, maybe modify it a bit to your liking.

You need.

A big enum wich contains all the vehicle data, like vehicle models, colors, tuning, paintjobs, etc.

create_Vehicle function - Creates a vehicle and stores them in a file or mysql.
update_Vehicle function - Will be called when you update your vehicle, so files/mysql is updated too.
load_Vehicle function - So your vehicles will be loaded once you start your server.

There are loads of tutorial on these functions, if you are a beginner, i recommend y_ini.inc file saving include. Use that to save your vehicles and tuning.
Reply


Messages In This Thread
Help with (/givecar) command - by geohareas - 29.12.2012, 11:43
Re: Help with (/givecar) command - by JaKe Elite - 29.12.2012, 11:46
Re: Help with (/givecar) command - by geohareas - 29.12.2012, 13:20
Re: Help with (/givecar) command - by FTLOG - 29.12.2012, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)