Jump to content

[REL] Gang system


Castillo

Recommended Posts

Posted

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

  • Replies 68
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
  • 9 months later...
  • 4 months later...
Posted

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.

Posted

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

Posted
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. :)

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

Posted (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 by Guest
Posted

kimmis: The script uses SQLITE, not MySQL :P.

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.

Posted

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

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

Posted

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

Posted
/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 :).

Posted

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...