Castillo Posted June 13, 2016 Posted June 13, 2016 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 3
roaddog Posted June 14, 2016 Posted June 14, 2016 Very nice but can u give more details abt the exported function what return and what type each arguments.
Castillo Posted June 14, 2016 Author Posted June 14, 2016 The resource description contains the details. Some of it might be wrong though, I forgot to change a few things.
Castillo Posted June 16, 2016 Author Posted June 16, 2016 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.
aka Blue Posted June 17, 2016 Posted June 17, 2016 I have a Little question. ¿How it works the bank system?
aka Blue Posted June 17, 2016 Posted June 17, 2016 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.
Castillo Posted June 17, 2016 Author Posted June 17, 2016 You can do that yourself using the exported functions, that's why I added them.
aka Blue Posted June 18, 2016 Posted June 18, 2016 You mean getGangData and setGangData right? Sorry for my ignorance
Castillo Posted June 18, 2016 Author Posted June 18, 2016 Yes, you can modify the bank of a gang using these functions.
Castillo Posted June 24, 2016 Author Posted June 24, 2016 DayZ uses the old version, I don't know how exactly it uses it though.
Hansa Posted October 10, 2016 Posted October 10, 2016 what's the meaning of default cmd how can i put it to creategang ?
Gravestone Posted October 10, 2016 Posted October 10, 2016 I guess default cmd is the command set by SolidSnake14, however you can change it in settings.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now