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

[FilterScript] Dynamic biz system v2.0

$
0
0
Dynamic biz system v2.0

Hello!
Before the presentation of this filterscript, you have to know this script is a new version of my previous one (here). There is a lot of modifications. So I prefer to made a new thread, let the previous version available (Y_INI version, that's why). I'll take the previous presentation, there is no more feature on the version 2.0 (more feature are coming).


Features:
- Saved biz system : Investor & Biz (MySQL R41)
- 6 type of biz available (Total : 29 interiors)
- Customizable name for each biz
- Deposit/withdraw money on your biz
- Make people pay when they enter in your biz
- Admin commands
- Make your friends investors
- Make your investor earn money

Include:
Code:

#include <a_samp>
#include <a_mysql>
#include <izcmd> // you can also use <zcmd> - Both are working
#include <sscanf2>
#include <foreach>
#include <YSI\y_va>
#include <easyDialog>


Credits to original author for each include.
RCON commands:
/createbiz : Create a biz with an interior, everything are explain IG.
/destroybiz : destroy a biz or every biz
/closestbiz : get the ID of closest biz
/editbiz : Edit a biz like /biz + you can change type & interior
/editinvestor: Edit investor's right of a specific biz
/aeditinvestor: Set an investor for a biz. You need to enter the player's name and not the ID.
/gotobiz : Explicit

Non-RCON commands:
/buybiz : buy a biz
/sellbiz : sell a biz
/biz : manage your biz
/modifinvestor : Edit investor's rights of your biz
/makeinvestor : Make someone an investor
/ibiz : Edit a biz as an investor



Configuration:

- Biz's params
Code:

#define                MAX_BIZ                        100                                                        // Number of biz
#define                MAX_BALANCE                1000000                        // Max amount of money in a biz
#define                MAX_BIZ_NAME                MAX_PLAYER_NAME*2        // The max lengh of a biz's name
#define                INVALID_BIZ_ID                (MAX_BIZ+10)*2                // Don't change this

- Pickup ID
Code:

#define        ICON_BIZ_CLOSED                        19133
#define                ICON_BIZ_OPEN                        1318
#define                ICON_BIZ_PENDING_OPEN                1272
#define                ICON_BIZ_PENDING_CLOSED                19523
#define                ICON_BIZ_INTERIOR                1239

MySQL configuration:
Code:

#define                MYSQL_HOST                                "localhost"
#define                MYSQL_USER                                "root"
#define                MYSQL_DATABASE                            "myserver"
#define                MYSQL_PASSWORD                          ""


What changes between version 1.1 & version 2.0 ?
- Switched to MySQL R41
- Minors changes
- Minors & majors bugs solved


Screenshoots:
http://hpics.li/26d9a2b
http://hpics.li/922e065
http://hpics.li/bb7a609
http://hpics.li/cb13e93

Script: https://github.com/Dayrion/Release/b...biz_system.pwn

Viewing all articles
Browse latest Browse all 595

Trending Articles



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