Jump to content

[REL] Gang system (remade)


Castillo

Recommended Posts

Posted

Hello there,

Around four years ago, I uploaded my first version of the SQL based gang system, and today, I'm releasing my completely remade resource, with new features and options.

In this new system, you can choose to use MySQL or SQLite as storage method in connection.lua.

[-] Features:

Creating gangs

- Custom color

- Custom tag (currently useless, up to you to do something with it)

- Bank

- Message of the day (motd)

- Logs

Member system

- Inviting

- Kicking

- Ranks

- Shouts

- Give leadership

Bank system

- Deposit

- Withdraw

Rank system

- Creating ranks

- Custom privileges per rank

- Renaming/changing privileges of existing ranks

[-] Exported functions:

addGang ( name, leader, color (table), tag ) 
removeGang ( name ) 
doesGangExist ( name ) 
getGangList ( SQL: true/false ) 
getGangData ( gangName, dataName (leader, bank, motd, color, tag, members, createdOn, logs (table), ranks(table)) ) 
setGangData ( gangname, dataName (Can be a table), dataValue (Can be a table) ) 
getGangMembers ( gangName ) 
addGangMember ( gangName, accountName, rank, addedBy ) 
removeGangMember ( gangName, accountName, kickerName ) 
getMemberData ( gangName, accountName, dataName (gangName, account, rank, nick, lastAction, addedBy, joinedOn) ) 
setMemberData  ( gangName, accountName, dataName (Can be a table), dataValue (Can be a table) ) 
getAccountGang ( accountName ) 
getPlayerGangInvitation ( player ) 
getPlayersByGang ( gangName ) 
getPlayerGang ( player ) 
getPlayerGangRank ( player ) 
addGangLogMessage ( gangName, message ) 
clearGangLogMessages ( gangName ) 
addGangRank ( gangName, rankName, privileges (table) ) 
removeGangRank ( gangName, rankName ) 
doesRankExist ( gangName, rankName ) 
isRankAllowedTo ( gangName, rankName, action (kick, invite, log, setrank, motd, tag, color, bank_withdraw, clearlog, createrank, editrank, delrank, shout) ) 

[-] How to use it:

U (default bind) - Gang Control Panel.

/gangs (default cmd) - Shows a list of all gangs.

/creategang (default cmd) -- To create a gang

/gc (default cmd) -- Gang chat

/gshout (default cmd) -- Global gang shout

/accept (default cmd) -- To accept gang invitations

Example: /creategang Test

The resource comes with plenty of settings, so you can customize it at will.

DOWNLOAD: HERE

  • Like 3

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Very nice but can u give more details abt the exported function what return and what type each arguments.

You gone learn today.

I work my ass off, but I still can't pay tho.

Posted

The resource description contains the details.

Some of it might be wrong though, I forgot to change a few things.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Upon request of a forum user, I've added two new settings:

Gang create key bind

Gang chat key bind

By default, they aren't set to any key.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

What do you mean by "how"?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

From the "Bank" button on the gang CP?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

And, there's not a function to do that? It will be nice. I mean, for making an admin permission to deposit/withdraw money from a Gang.

Anyway, good script.

yDORrdn.png

Posted

You can do that yourself using the exported functions, that's why I added them.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Yes, you can modify the bank of a gang using these functions.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

DayZ uses the old version, I don't know how exactly it uses it though.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • 3 months later...

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