19.12.2013, 05:15
(
Last edited by Tayab; 20/12/2013 at 11:57 PM.
)
Dynamic Car Saving System [BASIC]
IntroductionThis is a SQLite based Dynamic Car System, which allows you to save the server cars from game rather than using AddPlayerStaticVehicle function inside the script. Which is not very much efficient than the one I've created. This is a basic script therefore doesn't have too many options such as deleting the created vehicle and rest, but I'll keep updating the script to the latest.
Instructions
This filterscript is basically pretty easy to plug into the gamemode, it follows the exact same procedure as all other filterscripts but you have to change few things inside the script.
1. Download the .pwn & .amx file and download into the filterscripts folder.
2. Open the script and edit the following to your settings.
USER_DB: Change it to your SQLite database.
MAX_VEHICLES: Change it to the maximum number of vehicles you want in the server.
3. That's basically it. You're good to go.
Commands
1. /saveveh
Credits
Tayab Soomro: Developing the script
******: SSCANF
Don't know: ZCMD
Don't know: SQLite
Updates
- Added /deleteveh command which allows you to delete the vehicle from the server.
- Now you can get the name of the car by the ID /vehname.
- Some minor changes throughout the script.
Download
http://pastebin.com/6H7j7bQC
~ You can do whatever you want with the script. You can also remove the credits.