Four Posted April 10, 2017 Content Count: 1403 Joined: 09/15/16 Status: Offline Share Posted April 10, 2017 (edited) Jailbreak Gangs About: This is a gangs plugin that allows people to create gangs and invite their friends! Once members of the gangs gather enough credits/points, they're able to unlock gang powerups! This allows people to get together and have some fun. Perks that gangs can work towards include extra health, damage, lower gravity, higher speed, and finally gang size increase! The powerups given are very slight, and do not impede gameplay in any way. Powerups are also disabled when there's only one terrorist left (last request). Give it a try! Installation: If you're running Zephyrus's store or the myjailshop plugin, go ahead and throw away hl_gangs_credits.smx since you don't need a simple store system. Due to the fact that gang's skill levels depend on credits, I included a default credit system that is very very simple. This is just so the gangs plugin will work even if you don't have a supported store system. hl_gangs_credits.smx is designed to be a simple system and it doesn't require a database entry (it uses hl_gang's database) Install plugin into sourcemod/plugins directory Add database.cfg entry under hl_gangs (default cvar value) Load plugins in game Have fun Commands: sm_gangs Cvar File: // This file was auto-generated by SourceMod (v1.8.0.5967) // ConVars for plugin "hl_gangs.smx" // Price of gang creation // - // Default: "20" hl_gangs_creation_price "20" // Disable the damage perk? // Set 1 to disable // - // Default: "0" hl_gangs_damage "0" // Knife Damage perk modifier. 1.5 default // - // Default: "1.5" hl_gangs_damage_modifier "1.5" // Price of the Damage perk // - // Default: "20" hl_gangs_damage_price "20" // Name of the database for the plugin. // - // Default: "hl_gangs" hl_gangs_database_name "hl_gangs" // Enable the plugin? (1 = Yes, 0 = No) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" hl_gangs_enabled "1" // Disable the gravity perk? // Set 1 to disable // - // Default: "0" hl_gangs_gravity "0" // Price of the Gravity perk // - // Default: "20" hl_gangs_gravity_price "20" // Disable the health perk? // Set 1 to disable // - // Default: "0" hl_gangs_health "0" // Price of the Health perk // - // Default: "20" hl_gangs_health_price "20" // Set invite style to pop up a Menu? // (1 = Menu, 0 = Registered Command) // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" hl_gangs_invite_style "1" // Initial size for a gang // - // Default: "6" hl_gangs_max_size "6" // Price modifier for perks // Set 0 to disable // - // Default: "0" hl_gangs_price_modifier "0" // Price to rename // - // Default: "40" hl_gangs_rename_price "40" // Disable the size perk? // Set 1 to disable // - // Default: "0" hl_gangs_size "0" // Price of the Size perk // - // Default: "20" hl_gangs_size_price "20" // Disable the speed perk? // Set 1 to disable // - // Default: "0" hl_gangs_speed "0" // Price of the Speed perk // - // Default: "20" hl_gangs_speed_price "20" [font=verdana]PHP Code: [/font][font=verdana][color=#FF8000]#if defined hl_gangs_include #endinput #endif #define hl_gangs_include /* Gang Ranks */ [/color][color=#0000BB]enum GangRank [/color][color=#007700]{ [/color][color=#0000BB]Rank_Invalid [/color][color=#007700]= -[/color][color=#0000BB]1[/color][color=#007700], [/color][color=#0000BB]Rank_Normal[/color][color=#007700], [/color][color=#0000BB]Rank_Admin[/color][color=#007700], [/color][color=#0000BB]Rank_Owner [/color][color=#007700]} [/color][color=#FF8000]/** * Outputs a formatted message to the client * * @param client client index * @return int gang size */ [/color][color=#0000BB]native void Gangs_Message[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700], const [/color][color=#0000BB]char[/color][color=#007700][] [/color][color=#0000BB]format[/color][color=#007700], [/color][color=#0000BB]any [/color][color=#007700]...); [/color][color=#FF8000]/** * Outputs a formatted message to all clients * * @param client client index * @return int gang size */ [/color][color=#0000BB]native void Gangs_MessageToAll[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700], const [/color][color=#0000BB]char[/color][color=#007700][] [/color][color=#0000BB]format[/color][color=#007700], [/color][color=#0000BB]any [/color][color=#007700]...); [/color][color=#FF8000]/** * Returns the size of a client's gang * * @param client client index * @return int gang size */ [/color][color=#0000BB]native int Gangs_GetGangSize[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700]) [/color][color=#FF8000]/** * Returns if a client is a member of a gang * * @param client client index * @return bool gang status */ [/color][color=#0000BB]native bool Gangs_HasGang[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700]); [/color][color=#FF8000]/** * Get a client's gang rank * * @param client client index * @return GangRank gang rank */ [/color][color=#0000BB]native GangRank Gangs_GetGangRank[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700]); [/color][color=#FF8000]/** * Get a client's gang name * * @param client client index * @return no return */ [/color][color=#0000BB]native void Gangs_GetGangName[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700], [/color][color=#0000BB]char[/color][color=#007700][] [/color][color=#0000BB]buffer[/color][color=#007700], [/color][color=#0000BB]int maxlength[/color][color=#007700]); [/color][color=#FF8000]/** * Returns a client's damage modifier * * @param client client index * @return float damage modifier */ [/color][color=#0000BB]native float Gangs_GetDamageModifier[/color][color=#007700]([/color][color=#0000BB]client[/color][color=#007700]); [/color][color=#FF8000]/** * Called after the main menu is built, but before it's displayed. * @param client Player's index. * @param menu Menu being displayed to the client. * @noreturn */ [/color][color=#0000BB]forward void Gangs_OnMenuCreated[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700], [/color][color=#0000BB]Menu menu[/color][color=#007700]); [/color][color=#FF8000]/** * Called once a main menu item has been selected * @param menu Menu displayed * @param action Menu Action * @param param1 client index * @param param2 * @noreturn */ [/color][color=#0000BB]forward void Gangs_OnMenuCallback[/color][color=#007700]([/color][color=#0000BB]Menu menu[/color][color=#007700], [/color][color=#0000BB]MenuAction action[/color][color=#007700], [/color][color=#0000BB]int param1[/color][color=#007700], [/color][color=#0000BB]int param2[/color][color=#007700]); [/color][color=#FF8000]/** * Called after the perk menu is built, but before it's displayed. * This is where you can add custom perks. See Gangs_OnPerkMenuCallback * * @param client Player's index. * @param menu Menu being displayed to the client. * @noreturn */ [/color][color=#0000BB]forward void Gangs_OnPerkMenuCreated[/color][color=#007700]([/color][color=#0000BB]int client[/color][color=#007700], [/color][color=#0000BB]Menu menu[/color][color=#007700]); [/color][color=#FF8000]/** * Called once a perk menu item has been selected * @param menu Menu displayed * @param action Menu Action * @param param1 client index * @param param2 * @noreturn */ [/color][color=#0000BB]forward void Gangs_OnPerkMenuCallback[/color][color=#007700]([/color][color=#0000BB]Menu menu[/color][color=#007700], [/color][color=#0000BB]MenuAction action[/color][color=#007700], [/color][color=#0000BB]int param1[/color][color=#007700], [/color][color=#0000BB]int param2[/color][color=#007700]); public [/color][color=#0000BB]SharedPlugin __pl_hl_gangs [/color][color=#007700]= { [/color][color=#0000BB]name [/color][color=#007700]= [/color][color=#DD0000]"hl_gangs"[/color][color=#007700], [/color][color=#0000BB]file [/color][color=#007700]= [/color][color=#DD0000]"hl_gangs.smx"[/color][color=#007700], [/color][color=#FF8000]#if defined REQUIRE_PLUGIN [/color][color=#0000BB]required [/color][color=#007700]= [/color][color=#0000BB]1 [/color][color=#FF8000]#else [/color][color=#0000BB]required [/color][color=#007700]= [/color][color=#0000BB]0 [/color][color=#FF8000]#endif [/color][color=#007700]}; [/color][color=#FF8000]#if !defined REQUIRE_PLUGIN [/color][color=#007700]public [/color][color=#0000BB]__pl_hl_gangs_SetNTVOptional[/color][color=#007700]() { [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_GetDamageModifier"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_GetGangName"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_GetGangRank"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_HasGang"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_GetGangSize"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_Message"[/color][color=#007700]); [/color][color=#0000BB]MarkNativeAsOptional[/color][color=#007700]([/color][color=#DD0000]"Gangs_MessageToAll"[/color][color=#007700]); } [/color][/font] [color=#FF8000][font=verdana]#endif [/font][/color] Download Here. [video=youtube_share;0yqizGd9nAk] The video specifically shows how slight the power ups are, this idea of having gangs in JB will make our server stand out more than it already does. It will give the players an incentive to work together as a team to overthrow the prion guards. IMO this will also bring the players together. Competing for the #1 spot in the gangs leader boards. The way a Gang gets credits/points (on the leader boards) is done by killing a CT, similar to the leader boards already installed on our server. This is not my plugin, all original work can be found here. Edited April 12, 2017 by Caution Link to comment
eXtr3m3 Posted April 10, 2017 Content Count: 5108 Joined: 06/29/13 Status: Offline Share Posted April 10, 2017 Can we use this plugin with Zephyrus store but using it with sqlite? thanks in advance Link to comment
All Ts Posted April 10, 2017 Content Count: 4441 Joined: 05/28/16 Status: Offline Share Posted April 10, 2017 Can we use this plugin with Zephyrus store but using it with sqlite? thanks in advance Zephrus's store using SQLite is okay as long as you can use MySQL for hl_gangs databases Link to comment
Caution Posted April 10, 2017 Content Count: 11501 Joined: 10/19/08 Status: Offline Share Posted April 10, 2017 Any chance this can be compatible with tf2? Link to comment
Pandapwnr Posted April 10, 2017 Content Count: 241 Joined: 09/27/15 Status: Offline Share Posted April 10, 2017 Any chance this can be compatible with tf2? I created a branch and removed CS:GO/CS:S dependency. Compile & try this branch, let me know how it works https://github.com/Headline22/Gangs/...anc-tf2support Link to comment
Porpoise Posted April 10, 2017 Content Count: 253 Joined: 12/15/15 Status: Offline Share Posted April 10, 2017 Bug with topgangs : http://screenshot.sh/n9myBNX2Gney3 Link to comment
delirium Posted April 10, 2017 Content Count: 5382 Joined: 03/10/09 Status: Offline Share Posted April 10, 2017 I created a branch and removed CS:GO/CS:S dependency. Compile & try this branch, let me know how it works https://github.com/Headline22/Gangs/...anc-tf2support Awesome, will take a look! Also, for people in same gang are the supposed to not be able to attack each other? Link to comment
All Ts Posted April 10, 2017 Content Count: 4441 Joined: 05/28/16 Status: Offline Share Posted April 10, 2017 Awesome, will take a look! Also, for people in same gang are the supposed to not be able to attack each other? This plugin doesn't deal with damage modification based on gang member relationships Link to comment
Porpoise Posted April 10, 2017 Content Count: 253 Joined: 12/15/15 Status: Offline Share Posted April 10, 2017 Ah, ok. Still a cool plugin! Link to comment
Caution Posted April 10, 2017 Content Count: 11501 Joined: 10/19/08 Status: Offline Share Posted April 10, 2017 Bug with topgangs : http://screenshot.sh/n9myBNX2Gney3 Should be fixed in version 1.0.3! Try it Link to comment
Recommended Posts
Reply to Thread