Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] [MySQL]New MoneyBag System

$
0
0
New MoneyBag System



Introduction:


Hello,

i noticed in nowdays the most servers are using the old moneybag system that use strcmp command and old functions + is not optimized at all,
so i created new with the most optimized functions, and fastest functions (MySQL), i don't forgot credits for [HiC]TheKiller because i got inspired by his work ofc


Features:


- Fast loading postions MySQL

- easy to add your own clues and pos's

- easy to deleted it too

- script so optimized

- fast loading and setup


How to install it ?:


- Download it (mediafire) | copy it (pastebin)

- as you see in script there some places must be edited and some others not

PHP Code:

// --------------< this must be edited without it FS will not work >--------------
 
#define MySQL_Host     "localhost" // hostname of your mysql server if you are using xampp use "localhost"
#define MySQL_User     "root" // username for your mysql database
#define MySQL_Database "test" // database that server will connect to it
#define MySQL_Password "" // password of the database (user) that server will connect to it
 
// --------------< you can edit this if you want >--------------
 
#define MAX_MONEYBAGS 150 // max moneybags that can be stored in database
#define MB_DELAY 30 // how many time moneybag re-spawn
 
#define MAX_MONEYBAG_MONEY 37000 // Max of money that can moneybag handle
#define MIN_MONEYBAG_MONEY 13000 // Min of money that can moneybag handle
 
//#define WEAPONS_BOUNS // un-comment this if you want player get weapons bouns from moneybag
 
#if defined WEAPONS_BOUNS
 
#define MAX_WEAPONS_AMMO 1500 // Min of ammo that can be given to a player
#define MIN_WEAPONS_AMMO 200 // Max of ammo that can be given to a player 

* edit mysql informations
- Complie it

- copy *.amx file to filterscripts in your server folder

- add it in Server.cfg

- restart server

- well done

Commands:

- /savemb or /savemoneybag

- /delmb or /deletemoneybag

- /mb or /moneybag

- /tmb or /togglemb

How to add a moneybag?:

just get ingame and use /savemb or /savemoneybag with name!

enjoy!

same for delete /delmb


Download Link:


Pastebin: http://pastebin.com/8PfLVsfN
Mediafire: http://www.mediafire.com/file/jnixyx...rdu/MoneyBag.p

**Note: *.p = *.pwn just open it using your pawn complier and complie it


Credits:


- SA-MP Team
- Zeex
- BlueG
- [HiC]TheKiller

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>