Castillo Posted December 21, 2010 Share Posted December 21, 2010 Hey there, I've decided to upload my gang system, I will write below the features and how to use it. [-] Features: Creategangs Add/Kick members. Add/Remove sub leaders. Gangs list: leader, member count. Leave gang Destroy gang [-] Exported functions: addGang - Arguments: gangName, gangLeader. Returns: true or false. removeGang - Arguments: gangName. Returns: true or false. doesGangExists - Arguments: gangName. Returns: true or false. getGangList - Arguments: None. Returns: A table with gang list. getGangMembers - Arguments: gangName. Returns: A table with gang members. addGangMember - Arguments: gangName, accountName, 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). isGangMember - Arguments: gangName, accountName. Returns: true or false. getAccountGang - Arguments: accountName. Returns: The gang name, 'None' otherwise. getGangLeader - Arguments: gangName. Returns: The gang leader. getGangSubLeaders - Arguments: gangName. Returns: A JSON string with gang sub leaders. isPlayerGangInvited - Arguments: thePlayer. Returns: 3 arguments: invited, gangName, inviter. getPlayersByGang - Arguments: gangName. Returns: A table with gang players. isGangSubLeader - Arguments: gangName, accountName. Returns: true or false. [-] How to use it: U - Gang panel. /gangs - shows a list of all gangs. /creategang example: /creategang Torchwood Enjoy it and have fun! Download link: https://community.multitheftauto.com/index.php?p=resources&s=details&id=1514 Link to comment
Castillo Posted December 27, 2010 Author Share Posted December 27, 2010 Your post makes no sense, maybe edit it with something else? Link to comment
tim260 Posted October 27, 2011 Share Posted October 27, 2011 I downloaded this but when i do /addgang [FBI]tim260[HQ] it doesnt work how to fix ? Link to comment
Castillo Posted February 28, 2012 Author Share Posted February 28, 2012 After months of not releasing anything I've decided to rewrite this resource to be more efficient and fix the bugs it had. Today I've used my free time to do it, I've added 13 exported functions to manage the resource (check main post to get info about them). I know many people has been reporting that it was bugged, so here it is, as far as I've tested it has no bugs so far. Edit: I forgot to mention that /gangs won't open if there aren't any gang created. Link to comment
mjau Posted February 29, 2012 Share Posted February 29, 2012 Nice work Solidsnake but could u add some settings in meta for example to set the collumn title in scorebard since some other servers are not english. and someone like "Group" better and im sure there are some other useful settings u can add Link to comment
CapY Posted February 29, 2012 Share Posted February 29, 2012 Nice work Solidsnake but could u add some settings in meta for example to set the collumn title in scorebard since some other servers are not english. and someone like "Group" better and im sure there are some other useful settings u can add Why don't you do it yourself? Resource is public. Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 Because the resource is compiled to avoid removing credits. Link to comment
CapY Posted February 29, 2012 Share Posted February 29, 2012 Community is only for open-source scripts, you know. Link to comment
12p Posted February 29, 2012 Share Posted February 29, 2012 There's no rule stating "only open source resources can be uploaded and all the compiled resources will be deleted". Link to comment
CapY Posted February 29, 2012 Share Posted February 29, 2012 Which fool would remove the credits, eh ? Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 Community is only for open-source scripts, you know. If that would be true, then many resources should have been removed, but as far as I know, we can upload compiled scripts if we want. Link to comment
12p Posted February 29, 2012 Share Posted February 29, 2012 Which fool would remove the credits, eh ? Oh, wanna list? I've got a single name right now. MOJRM-511 Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 Which fool would remove the credits, eh ? Well, I've seen many servers with my "c-panel" resource with someone else credits. Link to comment
mjau Posted February 29, 2012 Share Posted February 29, 2012 (edited) Just to mention i understand why solidsnake compiled this because there are people dumb enough to steal credits especially for a script like this wich needs u to know SQLite coding too I dont really see why people remove credits i could printed Castillo on every resource i make because i dont see what differnce that is for the players, and capy if i could i would just changed the part on the script wich adds the collumn in scoreboard.... Edited February 29, 2012 by Guest Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 kimmis: The script uses SQLITE, not MySQL . Anyway, I don't see what's the problem with compiling it, it works perfect, it has exported functions to manage it from another scripts and so on. Now, if you guys could stop complaining about it. Link to comment
mjau Posted February 29, 2012 Share Posted February 29, 2012 oh was writing a bit fast i meant SQLite anyway if you make this small setting so i can set the collumn title i want i would be thankful Link to comment
12p Posted February 29, 2012 Share Posted February 29, 2012 The only complainer here was CapY. Off-topic: lol I noticed every answer I gave to CapY was replied by you, too. Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 oh was writing a bit fast i meant SQLite anyway if you make this small setting so i can set the collumn title i want i would be thankful Done, uploaded a update. Change log: Added settings for: scoreboard column name, gang panel bind, gangs list command, create gang command. Added a new exported function: isGangSubLeader (gangName, accountName). Link to comment
mjau Posted February 29, 2012 Share Posted February 29, 2012 i found some bugs /gangs dont give you any ability to close window, when you invite someone the message the guy who got invited should get the inviter gets, sub leader can kick leader ;O but cant destroy gang make subleader unavaible to kick leader Link to comment
Castillo Posted February 29, 2012 Author Share Posted February 29, 2012 /gangs dont give you any ability to close window This was fixed on version 2.1, I forgot to add it to the change log . when you invite someone the message the guy who got invited should get the inviter gets Fixed on version 2.2. make subleader unavaible to kick leader Fixed on version 2.2. Thanks for reporting these bugs . Link to comment
JR10 Posted February 29, 2012 Share Posted February 29, 2012 The author decide whether to compile or not, and owners decide whether to have a compiled script on their server or not. Good job Castillo. Link to comment
Recommended Posts