Vehicle ownership -
MenaceX^ - 19.11.2009
Hey.
This is an old vehicle ownership script I have, I just looked through and "renovated" it up, as I don't have what to do with my scripts, I decided to release it.
I don't know if it works or not but it should, I don't/didn't have time to test it, and I wasn't even an available mysql database either.
Direct link for ZCMD:
http://forum.sa-mp.com/index.php?topic=116240.0
Direct link for the MySQL plugin:
http://forum.sa-mp.com/index.php?topic=79352.0
Commands:
/buyvehicle - lets you buy the vehicle you're in.
/sellvehicle - to sell your vehicle.
/park - to repark your vehicle (will always spawn there later then..)
/rcar - teleports your car to you.
/respawnall - respawns all the vehicles.
/wipecars - deletes all the vehicles (server + db)
/killcar - deletes a vehicle
/setcar - gives a vehicle to a player.
/carcolor - changes your vehicle's color.
You need a working database + change the #defines to your mysql information, so you can access it.
You also need a database called vehicles with values:
id (auto_increment)
Model (tinyint)
X (float)
Y (float)
Z (float)
A (float)
Color1 (tinyint)
Color2 (tinyint)
Buyable (tinyint)
Price (int)
Owner (text)
Sometime when I have time I will upload a .sql file so it'll be easier to use.
If there are any bugs please let me know so I can fix them for you.
Download link:
http://www.sendspace.com/file/8ny9fc
Have fun using.
Re: Vehicle owner ship -
Kurence - 19.11.2009
Nice, btw it is ownership no owner_ship :P
Re: Vehicle ownership -
MenaceX^ - 19.11.2009
Changed.
Re: Vehicle ownership -
[XST]O_x - 19.11.2009
Wow awesome,Good job!
Re: Vehicle ownership -
MenaceX^ - 19.11.2009
Suggestions are welcome as well.
Re: Vehicle ownership -
Imran.Abbas - 19.11.2009
Great! Nice work
Re: Vehicle ownership -
DiddyBop - 19.11.2009
good job, does this also save there vehicle componants? if not..
Suggestions:
/tocar command (So when they log out they get ported to there car)
Save vehicle componants.
If they dont log in after so many days they lose there car...
Also, 2 mirrior.
Pastebin: http://pastebin.com/f36b69a6c
MediaFire: http://www.mediafire.com/?hytdokij40i
If u dont want the mirror ill delete :P
Re: Vehicle ownership -
MenaceX^ - 19.11.2009
I may do the components in future, but first lock stuff.
Re: Vehicle ownership -
kukars22 - 19.11.2009
And where to get this include
Re: Vehicle ownership -
Fj0rtizFredde - 19.11.2009
Quote:
Originally Posted by kukars22
And where to get this include
|
Here:
http://forum.sa-mp.com/index.php?topic=116240.0
Re: Vehicle ownership -
kukars22 - 19.11.2009
Thanks
Re: Vehicle ownership -
MenaceX^ - 19.11.2009
Added sources links of the ZCMD & MySQL.
Re: Vehicle ownership -
[SAK]vida - 20.11.2009
thx, will be useful
Re: Vehicle ownership -
Tamir Damari - 20.11.2009
Just nice.
Re: Vehicle ownership -
NavyBravo - 10.02.2010
I want It just only for admins
cause it will be a hell on a server!
is it just for admins or not?
Re: Vehicle ownership -
MenaceX^ - 12.02.2010
Due to a request here is the SQL table:
http://pastebin.com/d7ad64a5d
Re: Vehicle ownership -
abhor - 08.04.2010
Quote:
Originally Posted by MenaceX^
|
Unknown paste ID!, reupload please...
Re: Vehicle ownership -
sInK - 19.04.2010
-edit-.....
Re: Vehicle ownership -
DarkPower - 27.04.2010
I have question, where i can add vehicles?
Re: Vehicle ownership -
kadaradam - 28.08.2011
table please