[FilterScript] Dynamic Car Saving System [BASIC]
#1

Dynamic Car Saving System [BASIC]
Introduction

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

Looks nice,good job
Reply
#3

I try it and after srv restart it don't works.. But yeah, good job
Reply
#4

Quote:
Originally Posted by FoxGaming
View Post
I try it and after srv restart it don't works.. But yeah, good job
Sorry my bad.. all works perfect!
Reply
#5

Thanks, as soon as I go home. I'll update it with few more commands.
Reply
#6

Quote:
Originally Posted by Tayab
View Post
Thanks, as soon as I go home. I'll update it with few more commands.
I wait for it.. Yesterday I started use it.
Reply
#7

Thanks for interest in this filterscript. I've updated few things into the filterscript, please check it out.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)