19.11.2009, 10:54
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.
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.