SA-MP Forums Archive
[FilterScript] Dynamic Car Saving System [BASIC] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Dynamic Car Saving System [BASIC] (/showthread.php?tid=482059)



Dynamic Car Saving System [BASIC] - Tayab - 19.12.2013

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.


Re: Dynamic Car Saving System [BASIC] - Gen3i - 19.12.2013

Looks nice,good job


Re: Dynamic Car Saving System [BASIC] - FoxGaming - 19.12.2013

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


Re: Dynamic Car Saving System [BASIC] - FoxGaming - 19.12.2013

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!


Re: Dynamic Car Saving System [BASIC] - Tayab - 19.12.2013

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


Re: Dynamic Car Saving System [BASIC] - FoxGaming - 19.12.2013

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.


Re: Dynamic Car Saving System [BASIC] - Tayab - 24.12.2013

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.