Vehicle ownership
#1

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.
Reply
#2

Nice, btw it is ownership no owner_ship :P
Reply
#3

Changed.
Reply
#4

Wow awesome,Good job!
Reply
#5

Suggestions are welcome as well.
Reply
#6

Great! Nice work
Reply
#7

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
Reply
#8

I may do the components in future, but first lock stuff.
Reply
#9

And where to get this include
Code:
#include <zcmd>
Reply
#10

Quote:
Originally Posted by kukars22
And where to get this include
Code:
#include <zcmd>
Here: http://forum.sa-mp.com/index.php?topic=116240.0
Reply
#11

Thanks
Reply
#12

Added sources links of the ZCMD & MySQL.
Reply
#13

thx, will be useful
Reply
#14

Just nice.
Reply
#15

I want It just only for admins
cause it will be a hell on a server!
is it just for admins or not?
Reply
#16

Due to a request here is the SQL table:
http://pastebin.com/d7ad64a5d
Reply
#17

Quote:
Originally Posted by MenaceX^
Due to a request here is the SQL table:
http://pastebin.com/d7ad64a5d
Unknown paste ID!, reupload please...
Reply
#18

-edit-.....
Reply
#19

I have question, where i can add vehicles?
Reply
#20

table please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)