Jump to content

[REL] Business System v1.3.1 - OOP, MySQL


JR10

Recommended Posts

  • 1 month later...
  • 4 weeks later...
  • 2 months later...

Version 1.3.1 is released.

I've had some free time and decided to make a minor update to this resource as it's one of the top downloaded resources. The main change is reverting to CEGUI. This has been requested a lot as some were upset with the dependency on dxGUI. I've also fixed a bug with the output messages.

Community Link

Link to comment
  • 4 months later...
  • 10 months later...
On ‎2011‎. ‎09‎. ‎10‎. at 19:48, JR10 said:

Business System

 

Current Features [v1.3.1]:

 

  • Creating business ingame with GUI
  • DX texts and image on marker, containing info
  • Business window, containing info and actions
  • Payout, when you create a business you specify payout and payout time
  • Bank, payout go to the bank, you can deposit and withdraw
  • Managment, you can set name, owner, cost, bank and destroy
  • Moving DX messages for info messages, check the screenshots
  • When the resource stops, timers for payout are saved, loaded on start, and completed, meaning, if payout is every 1 hour, resource stopped and there was 20 minutes left, it's saved and on start the payout timer time is 20 minutes
  • Version Check, when the resource starts, it will check if a new version is released, and will inform business admins, of new versions
  • Uses SQLite or MySQL for saving, newest functions provided by MTA
  • Fully written in OOP

 

Change Log:

 

  • Version 1.1:
    • Fixed few bugs.
    • Improved update check.
    • Added setting to hide the info shown on the marker.
    • Now when you sell a business, you get the money in the bank.

     

    [*]Version 1.2:

     

    • New moving dxOutput, old one was hideous.
    • Fixed blip staying after business destroyed bug.
    • DB functions use callbacks now, thanks to Arran for telling me.

     

    [*]Version 1.3

     

    • Fully rewritten in OOP
    • New directx user interface with the dxGUI library
    • Can now use MySQL or SQLite

     

    [*]Version 1.3.1

     

    • Revert to CEGUI
    • Fix info messages not being output

     

 

Notes:

 

  • Use /business to open Create Business GUI.
  • There is settings in the meta for Info message type, marker color, inform player for payout, key to open business GUI, blip id, maximum number of owned businesses, hiding the info shown on the marker.
  • Adding the resource to admin group, is necessary for version checks.

 

Screen Shots:

  Hide contents

N01lekY.png

HWYvNBP.png

uqoq2cr.png

YdFZ9gc.png

SmBaeNz.png

mta-screen_2012-03-01_13-41-46.png

mta-screen_2012-03-01_13-41-49.png

mta-screen_2012-03-01_13-42-19.png

mta-screen_2012-03-01_13-42-23.png

Download

GitHub Repo

Any Ideas, bugs, questions please post them.

If you want to edit something and failed, post and I will help you.

I'm out of ideas for the resource, if you have any, please post them.

errors...

Link to comment
  • 5 months later...
  • 3 weeks later...
On 6/30/2016 at 01:11, 669344682 said:

If i created a business,only admin and owner can open the GUI, :cry::cry::cry:

I also having the same issue,  Normal player cant buy business @JR10 please check the issue and solve it, Maybe because of MTA latest version not compatible with the code,

please solve it, Anyone else can help us we will be honor :)  .

Link to comment
  • 2 months later...
On 2017/11/18 at 17:23, Namtih said:

I also having the same issue,  Normal player cant buy business @JR10 please check the issue and solve it, Maybe because of MTA latest version not compatible with the code,

please solve it, Anyone else can help us we will be honor :)  .

Hi! I haven't used this script, but maybe I can solve it now(because I've learned how to program MTASA script.) , if you still need this script ,please make sure this business script that is what you want, and next, message me!:)

Link to comment
On 1/23/2018 at 23:23, 669344682 said:

Hi! I haven't used this script, but maybe I can solve it now(because I've learned how to program MTASA script.) , if you still need this script ,please make sure this business script that is what you want, and next, message me!:)

Thanks ,Send me please

Link to comment
  • 2 weeks later...
  • 2 weeks later...
  • 6 months later...
On 21/02/2018 at 23:40, ytjuliocesar said:

 

I create the panel but the player can not buy it. And when the Mod is reset, everyone else's company is gone. 

I'm Brazilian, help me

I have this problem, I put to acl admin and doens't work nothing for the player, but. if i'm buy, the player open the panel N, if doens't have owner, the panel don't open for players

Edited by R1S1NG
Link to comment
  • 1 year later...
9 minutes ago, patela said:

When I use /business command game says that i dont have permision to use this command,but I am admin on my server and ive putted that weird  message in ACL (<object name="resource.business"></object>)

make it in admin acl

Link to comment

i did something like this

    <group name="Admin">
        <acl name="Moderator"></acl>
        <acl name="SuperModerator"></acl>
        <acl name="Admin"></acl>
        <acl name="RPC"></acl>
        <object name="resource.admin"></object>
        <object name="resource.modloader-mysuffix"></object>
        <object name="resource.webadmin"></object>
        <object name="resource.acpanel"></object>
        <object name="resource.hedit"></object>
        <object name="user.patela"></object>
        <object name="resource.business"></object>

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...