[FilterScript] [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG)
#1

MYSQL+PHP* based Vehicle System

Same FS as the old one but with MYSQL and a Web Page* integrated !


This FS includes a Vehicle Ownership, fuel, and speed system ideal for RPG servers.


The cmds available are:

/buycar: CMD to buy an unbought car
/sellcar: CMD to sell your current vehicle (you must be inside it)
/whereismycar: CMD to locate your current vehicle
/callmycar: CMD to teleport your current vehicle to you (you lose 100 § by default) RCON ADMIN IS FREE OF TAX
/lockmycar : CMD to lock your car, so when you're online nobody can drive it
/mycars : CMD to see the cars you own and their ID
/carhelp: CMD to see the available cmds

Rcon admin cmds:

/callmycar
/setcarowner
/setcarprice
/setpark


How to add a vehicle?

Code:
AddVehicle(Carid, Carmodel, Carcolor1, Carcolor2, Float:CarX, Float:CarY, Float:CarZ, Float:CarA, CarCost, CarSell)

Carid is UNIQUE, so it can only exist ONE id for ONE vehicle.
Carmodel is the model of the vehicle.
Carcolor1 is the color 1 of the vehicle.
Carcolor2 is the color 2 of the vehicle.
CarX is the X position of the vehicle.
CarY is the Y position of the vehicle.
CarZ is the Z position of the vehicle.
CarA is the A position of the vehicle.
CarCost is the price of the vehicle.
CarSell is the sell price of the vehicle (should be 1/2 of CarCost, if you buy it at 1000 you sell it at 500).
There are already 135 vehicles added, you just need to be patient and add others where you want them.



When:

You leave a vehicle (if it's owned by you) the vehicle position is auto saved and the car will spawn there until you drive it to another place.

You paint a vehicle (if it's owned by you) the vehicle paint will be auto saved and the car will spawn with those colours until you paint it again.

You mod a vehicle the mod is NOT saved (I won't script this) !




About Installing the FS:

You will need a MySQL server.
On that MySQL server you will create a database that will be used by this FS.

Add the plugin in your server.cfg, if you are using linux download the correct version @ https://sampforum.blast.hk/showthread.php?tid=122983

Install the FS, change what's needed :

Code:
#define DB_HOST "" Host of the MySQL server
#define DB_USER "" User of the MySQL server
#define DB_PASSWORD "" Pass of the MySQL server
#define DB_NAME "" Database of MySQL server
Compile it and start the server, if it starts without any error you're good to go else post here !



About Installing the Web page:

Install the files in your site.

Change "connection/connection.php with your database data"

You are good to go !


Download is attached to the topic.




Have fun,
Rafstar 8Ю
Reply


Messages In This Thread
[FS] MYSQL* based Vehicle System [Vehicle Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 00:53
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Takumi.WS - 19.09.2009, 01:02
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 01:09
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Adil - 19.09.2009, 01:48
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 01:52
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Beremix - 19.09.2009, 11:05
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by HACKHERS - 19.09.2009, 11:11
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 11:13
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by HACKHERS - 19.09.2009, 11:15
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by mihais17 - 19.09.2009, 11:15
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Hiitch - 19.09.2009, 12:05
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 12:47
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by HACKHERS - 19.09.2009, 12:54
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 12:57
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by [XST]O_x - 19.09.2009, 13:01
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Hash - 19.09.2009, 15:44
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Azur - 19.09.2009, 20:48
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 21:13
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by [NYRP]Mike. - 19.09.2009, 21:17
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 21:32
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by [NYRP]Mike. - 19.09.2009, 21:38
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 19.09.2009, 22:07
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by SanMarinoRP - 20.09.2009, 01:03
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Eazy_Efolife - 20.09.2009, 01:58
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by SanMarinoRP - 20.09.2009, 01:59
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Eazy_Efolife - 20.09.2009, 01:59
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 20.09.2009, 10:22
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by [Sk]Noob - 20.09.2009, 16:57
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 20.09.2009, 17:44
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by [NYRP]Mike. - 20.09.2009, 17:59
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by TraNe15 - 20.09.2009, 18:29
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 20.09.2009, 23:05
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Alice[WS] - 20.09.2009, 23:21
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 20.09.2009, 23:40
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by SanMarinoRP - 20.09.2009, 23:51
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Hiitch - 21.09.2009, 00:36
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by techdecker - 23.11.2009, 17:13
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 23.11.2009, 20:32
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by 11irfan11 - 24.11.2009, 10:23
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by alma1305 - 13.12.2009, 20:09
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 13.12.2009, 22:34
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by alma1305 - 14.12.2009, 11:39
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by AurimasLT - 20.12.2009, 20:32
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by juuleman - 28.12.2009, 11:06
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by RaFsTar - 02.01.2010, 16:14
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by StreetGT - 02.01.2010, 16:33
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by thimo - 17.12.2010, 15:36
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Stefan_Toretto - 17.12.2010, 20:17
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by PRO>KOMP.< - 08.01.2011, 23:10
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Cristiano[TW[ - 15.02.2011, 08:32
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by CONTROLA - 16.02.2011, 14:42
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by GBLTeam - 11.04.2011, 10:40
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by DJ_CAMELO - 25.04.2011, 23:36
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by misho1 - 01.05.2011, 23:20
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by =WoR=Varth - 01.05.2011, 23:28
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by Travis098 - 02.05.2011, 07:31
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by misho1 - 03.05.2011, 17:56
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by GBLTeam - 11.05.2011, 09:20
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by CostasPapado - 29.05.2011, 18:14
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by -•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 04.06.2011, 18:05
Re: [FS] Car System [Car Ownership + Fuel + Speedo] (Ideal for RPG) - by misho1 - 01.09.2011, 10:23

Forum Jump:


Users browsing this thread: 1 Guest(s)