Jump to page content
English English   Polish Polish   Dutch Dutch   Russian Russian   German German   Hungarian Hungarian   Norwegian Norwegian   Swedish Swedish   Finnish Finnish   Romanian Romanian   Spanish Spanish   Portuguese Portuguese   Latvian Latvian  
Homepage
Home
Register
Login

Resources
Forum
Wiki
Servers

rssGang system (gang_system)

Category:script
Author(s):castillo14
Downloads:24308
Rate:You need to be logged in to vote
Rating:3.6 (90 Votes)
Description:
This is a basic (kind of) SQL based gang 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 <-- Arguments: name, leader, color (table), tag. Returns: true or false. -->
removeGang <-- Arguments: gangName. Returns: true or false. -->
doesGangExist <-- Arguments: gangName. Returns: true or false. -->
getGangList <-- Arguments: SQL (true/false). Returns: A table with gang list. If SQL argument is used, it'll return it with gang name as index -->
getGangData <-- Arguments: gangName, dataName (leader, bank, motd, color, tag, members, createdOn, logs (table), ranks(table)). Returns: The data. -->
setGangData <-- Arguments: gangName, dataName (Can be a table), dataValue (Can be a table). Returns: true or false. -->
getGangMembers <-- Arguments: gangName. Returns: A table with gang members. -->
addGangMember <-- Arguments: gangName, accountName, rank, addedBy. Returns: true or false (if false, it'll return a second argument with the error.) -->
removeGangMember <-- Arguments: gangName, accountName, kickerName (if used it'll output who kicked the member, else it'll output that you left). Returns: true or false (if false, it'll return a second argument with the error.) -->
getMemberData <-- Arguments: gangName, accountName, dataName (gangName, account, rank, nick, lastAction, addedBy, joinedOn). Returns: The data. -->
setMemberData <-- Arguments: gangName, accountName, dataName (Can be a table), dataValue (Can be a table). Returns: true or false. -->
getAccountGang <-- Arguments: accountName. Returns: The gang name and rank, false otherwise. -->
getPlayerGangInvitation <-- Arguments: thePlayer. Returns: table. -->
getPlayersByGang <-- Arguments: gangName. Returns: A table with online gang members. -->
getPlayerGang <-- Arguments: thePlayer. Returns: The gang name, 'None' otherwise. -->
getPlayerGangRank !-- Arguments: thePlayer. Returns: The gang rank, 'None' otherwise. -->
addGangLogMessage <-- Arguments: gangName, message. Returns: true or false. -->
clearGangLogMessages <-- Arguments: gangName. Returns: true or false. -->
addGangRank <-- Arguments: gangName, rankName, privileges (table). Returns: true or false. -->
removeGangRank <-- Arguments: gangName, rankName. Returns: true or false. -->
doesRankExist <-- Arguments: gangName, rankName. Returns: true or false. -->
isRankAllowedTo <-- Arguments: gangName, rankName, action (kick, invite, log, setrank, motd, tag, color, bank_withdraw, clearlog, createrank, editrank, delrank, shout). Returns: true or false. -->

[-] How to use it:

U (default bind) - Gang Control Panel.
/gangs (default cmd) - Shows a list of all gangs.
/creategang (default cmd) <gang name> -- To create a gang
/gc (default cmd) <text> -- Gang chat
/gshout (default cmd) <text> -- 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.
...

(more)

Download latest version | Report

Version history

Version Publish Date Changes
3.0.2 2017-05-18 23:47:01 Added 'allow_characters_for_name' setting to allow/disallow the usage of characters such as [,.-]. Enabled by default. Download
3.0.1 2016-09-23 23:49:40 Fixed gang create bind not binding when new player joins. Added two new settings: gang create bind and gang chat bind. Download
3.0.0 2016-06-13 00:11:07 Completely reworked Download
2.4.5 2013-12-04 17:27:42 Fixed a small bug. Download
2.4.4 2013-10-05 16:02:23 Re-compiled the script using MTA's new compilation method. Download
2.4.3 2013-03-21 14:22:26 Download
2.4.2 2013-03-19 01:17:53 Fixed bind problem. Download
2.4.1 2013-01-13 17:43:26 Fixed "Gang color" button not working. Download
2.4.0 2013-01-12 22:14:18 Added gang color, changed gang creation to a GUI instead of a command. Download
2.3.5 2012-12-04 04:50:36 Fixed gang not being reset on logout. Download
2.3.0 2012-04-03 02:10:38 Added: Only show players without a gang on "Invite player" list. Download
2.2.0 2012-02-29 23:31:43 Fixed bug: Invitation message is received by the player.
Fixed bug: Sub leaders can kick the gang leader, when they shouldn't be able to.
Fixed bug: 'Close' button missing on gangs list window.
Download
2.1.0 2012-02-29 21:19:08 Added settings for: scoreboard column name, gang panel bind, gangs list command, create gang command. Added a new exported function: isGangSubLeader Download
2.0.0 2012-02-28 06:05:08 Whole script rewritten from scratch, more efficient coding, added exported functions as it's compiled. Download
1.0.0 2010-12-20 22:48:21 First public release Download