Raised This Month: $51 Target: $400
 12% 

[CS:S/CS:GO] jailController (v1.4.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
pat841
Member
Join Date: Jun 2013
Location: Boston
Plugin ID:
3683
Plugin Version:
1.4.2
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Manages many aspects of a jail server such as handling warden, managing the server ratio and supporting guard bans.
    Old 06-07-2013 , 04:29   [CS:S/CS:GO] jailController (v1.4.2)
    Reply With Quote #1

    jailController v1.4.2 STABLE


    Description:
    I have been using many plugins for my jail server and I wanted an all-in-one plugin to handle ratios, ct bans, warden, and round muting so I decided to make this. I have been testing it on my server for quite some time so I moved it to release. I will be adding features based by suggestion.

    Features:
    • Warden Selection (FIFO/Random)
    • Custom Warden Color
    • Warden chat tag
    • Limit warden rounds
    • Notify clients when warden speaks
    • Freeday Management
    • Votekick Warden
    • Guard Queue
    • Mute guards with admin and warden immunity
    • Freekill protection and punishment
    • Ratio system
    • Four ratio settings for different numbers of players
    • Force Teams

    Cvars:
    PHP Code:
    sm_jailcontroller_version // Prints the plugin version
    sm_jailcontroller_enabled <1/0// Enables or disables the plugin
    sm_jailcontroller_advertise <1/0// Support us and let people know you use our plugin
    sm_jailcontroller_warden_select <0/1// How to select the warden, FIFO/Randomly
    sm_jailcontroller_warden_keep_queue <1/0// Enables or disables keeping the warden queue between rounds
    sm_jailcontroller_warden_color_enable <1/0// Enables coloring the warden
    sm_jailcontroller_warden_color <125 150 250// The model color to set the warden
    sm_jailcontroller_warden_death <1/0// How to handle a warden death, Freeday/New Warden
    sm_jailcontroller_adminflag <1/FLAGS// The admin flag for immunity and commands
    sm_jailcontroller_warden_rounds <#> // Maximum number of consecutive rounds for a warden
    sm_jailcontroller_warden_announce <1/0// Announce when a new warden is selected
    sm_jailcontroller_warden_vote_off <1/0// Allow people to votekick a warden off
    sm_jailcontroller_warden_voicehook <1/0// Enable printing when the warden speaks to clients
    sm_jailcontroller_punish_enabled <1/0// Enable free kill protection
    sm_jailcontroller_punish_kills <#> // Maximum number a non warden guard can have in one round
    sm_jailcontroller_punish_type <0/1/2// Punishment type for free killers
    sm_jailcontroller_punish_lastguard <0/1// Punish the last guard
    sm_jailcontroller_vote_percent <#> // Percentage of people needed to remove warden
    sm_jailcontroller_mute_guards <1/0// Mute guards (not warden) at round start
    sm_jailcontroller_mute_time <#> // Number of seconds to mute guards for
    sm_jailcontroller_ratio_enabled <1/0// Enables or disables ratio management
    sm_jailcontroller_ratio_small <#> // Ratio to use when <=5 players in server
    sm_jailcontroller_ratio_medium <#> // Ratio to use when <=10 players in server
    sm_jailcontroller_ratio_large <#> // Ratio to use when <=15 players in server
    sm_jailcontroller_ratio_full <#> // Ratio to use when 15< players in server
    sm_jailcontroller_forcet <1/0// Force players to join T
    sm_jailcontroller_show_classes <1/0// Show model selection 
    Client Commands:
    PHP Code:
    sm_warden Gives warden to the player or adds to queue
    sm_retire 
    Current warden can retire
    sm_guard 
    Ts can request to be a guard
    sm_unqueue 
    Clients can remove themselves from the queue
    sm_vkwarden 
    Clients can votekick a warden off
    sm_jail
    sm_jb Bring up a command menu with commands 
    Admin Commands:
    PHP Code:
    sm_clearwardens Resets the warden queue
    sm_clearguards 
    Resets the guard queue
    sm_removewarden 
    Removes the current warden
    sm_removeguard 
    <player|#userid> - Removes the player from the guard queue
    sm_banguard <player|#userid> - Bans the player from becoming a guard
    sm_clearguardbans Resets all guard bans 
    Install:
    1. Download the latest version of jailcontroller.smx.
    2. Upload the plugin to your sourcemod/plugins/ directory.
    3. Upload the translations to your sourcemod/translations/ directory.
    4. OPTIONAL: Add adminmenu.custom to new or existing adminmenu.custom in sourcemod/configs/
    5. Restart your server or use "sm plugins load jailcontroller" in rcon.
    6. Edit the config in /cfg/sourcemod/jailcontroller.cfg.
    7. Voila! You're good to go.
    8. OPTIONAL: Install the Updater plugin HERE to auto-update this plugin.
    9. OPTIONAL: Voicehook support HERE by minimoney1 and DHooks.

    Bugs:
    • None Currently

    ToDo:
    • Add other language translations

    Credits:
    • Databomb - Used from VGUIMenu functions and used his jailbalancer plugin for inspiration.

    Version Log:
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (jailcontroller.sp - 1007 views - 53.5 KB)
    File Type: smx jailcontroller.smx (27.2 KB, 1193 views)
    File Type: txt jailcontroller.phrases.txt (3.2 KB, 1301 views)
    File Type: txt adminmenu_custom.txt (627 Bytes, 1169 views)
    __________________

    Last edited by pat841; 06-17-2013 at 23:30.
    pat841 is offline
    vexium
    Member
    Join Date: Jan 2013
    Old 06-07-2013 , 06:11   Re: [CS:S/CS:GO] jailController (v1.0)
    Reply With Quote #2

    wow! excellent. one request: can you make it so the ratio-maintaining aspect of the plugin can be disabled? some of us prefer to just have admins handle ratio.

    EDIT: currently crashes CS:GO on execution of any chat commands.

    Last edited by vexium; 06-07-2013 at 11:11.
    vexium is offline
    pat841
    Member
    Join Date: Jun 2013
    Location: Boston
    Old 06-07-2013 , 12:06   Re: [CS:S/CS:GO] jailController (v1.0)
    Reply With Quote #3

    Quote:
    Originally Posted by vexium View Post
    wow! excellent. one request: can you make it so the ratio-maintaining aspect of the plugin can be disabled? some of us prefer to just have admins handle ratio.

    EDIT: currently crashes CS:GO on execution of any chat commands.
    I will go ahead and add a cvar to disable ratio in the next version. I believe CS:GO could be crashing due to colors. I dont have a CS:GO server to test, so can you supply server logs?

    Edit: Uploaded new version with requested cvar and updated color checking. See if it still crashes.
    __________________

    Last edited by pat841; 06-07-2013 at 13:29.
    pat841 is offline
    vexium
    Member
    Join Date: Jan 2013
    Old 06-07-2013 , 13:29   Re: [CS:S/CS:GO] jailController (v1.0.1)
    Reply With Quote #4

    tried to use !guard:

    Code:
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "jailcontroller.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 347, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CSayText2()
    L 06/07/2013 - 08:06:29: [SM]   [1]  Line 74, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CPrintToChat()
    L 06/07/2013 - 08:06:29: [SM]   [2]  Line 625, C:\Users\Pat\Documents\Work\aMity\PawnStudio\jailcontroller.sp::Command_Guard()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    last bit repeats endlessly. among other things, looks like it is having issues of compatibility with simple chat processor?



    tried to use !warden as ct:
    Code:
    L 06/07/2013 - 08:09:34: [SM] Plugin encountered error 21: Native is not bound
    L 06/07/2013 - 08:09:34: [SM] Native "BfWriteByte" reported: 
    L 06/07/2013 - 08:09:34: [SM] Displaying call stack trace for plugin "jailcontroller.smx":
    L 06/07/2013 - 08:09:34: [SM]   [0]  Line 347, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CSayText2()
    L 06/07/2013 - 08:09:34: [SM]   [1]  Line 74, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CPrintToChat()
    L 06/07/2013 - 08:09:34: [SM]   [2]  Line 96, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CPrintToChatAll()
    L 06/07/2013 - 08:09:34: [SM]   [3]  Line 583, C:\Users\Pat\Documents\Work\aMity\PawnStudio\jailcontroller.sp::Command_Warden()
    L 06/07/2013 - 08:09:34: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:09:34: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:09:34: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:09:34: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:09:34: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:09:34: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()

    Last edited by vexium; 06-07-2013 at 13:33.
    vexium is offline
    pat841
    Member
    Join Date: Jun 2013
    Location: Boston
    Old 06-07-2013 , 13:38   Re: [CS:S/CS:GO] jailController (v1.0.1)
    Reply With Quote #5

    Quote:
    Originally Posted by vexium View Post
    Code:
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "jailcontroller.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 347, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CSayText2()
    L 06/07/2013 - 08:06:29: [SM]   [1]  Line 74, C:\Users\Pat\Documents\Work\aMity\SM Windows\addons\sourcemod\scripting\include\colors.inc::CPrintToChat()
    L 06/07/2013 - 08:06:29: [SM]   [2]  Line 625, C:\Users\Pat\Documents\Work\aMity\PawnStudio\jailcontroller.sp::Command_Guard()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    L 06/07/2013 - 08:06:29: [SM] Displaying call stack trace for plugin "simple-chatprocessor.smx":
    L 06/07/2013 - 08:06:29: [SM]   [0]  Line 469, C:\Users\Administrator\Documents\Repositories\Simple Chat Processor\scripting\simple-chatprocessor.sp::OnGameFrame()
    L 06/07/2013 - 08:06:29: [SM] Native "StartMessage" reported: Unable to execute a new message, there is already one in progress
    last bit repeats endlessly. among other things, looks like it is having issues of compatibility with simple chat processor?
    Just updated the plugin as you posted. Re-download and try again please.
    __________________
    pat841 is offline
    vexium
    Member
    Join Date: Jan 2013
    Old 06-07-2013 , 18:53   Re: [CS:S/CS:GO] jailController (v1.1)
    Reply With Quote #6

    Works! Awesome!

    There is one issue, though. When warden is queue'd by a player who has died and no other CT has queue'd for warden, it will give warden to the dead CT.

    Can we get a check that prevents dead CTs from becoming warden while in queue?

    Thanks again for this great plugin.

    Also perhaps a blue colorization on Warden's skin when claimed? Would be useful.


    EDIT: Yea, it appears there are some issues with dead players in warden queue. I think it needs some checks in regards to this and perhaps team switching?

    Last edited by vexium; 06-07-2013 at 18:54.
    vexium is offline
    pat841
    Member
    Join Date: Jun 2013
    Location: Boston
    Old 06-07-2013 , 21:43   Re: [CS:S/CS:GO] jailController (v1.1)
    Reply With Quote #7

    Quote:
    Originally Posted by vexium View Post
    Works! Awesome!

    There is one issue, though. When warden is queue'd by a player who has died and no other CT has queue'd for warden, it will give warden to the dead CT.

    Can we get a check that prevents dead CTs from becoming warden while in queue?

    Thanks again for this great plugin.

    Also perhaps a blue colorization on Warden's skin when claimed? Would be useful.


    EDIT: Yea, it appears there are some issues with dead players in warden queue. I think it needs some checks in regards to this and perhaps team switching?
    Just updated the plugin, I hope to have fixed your issue.
    __________________
    pat841 is offline
    ilga80
    Senior Member
    Join Date: Nov 2012
    Old 06-08-2013 , 05:49   Re: [CS:S/CS:GO] jailController (v1.1.1)
    Reply With Quote #8

    jailcontroller.sp(369) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(371) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(373) : error 017: undefined symbol "CReplaceColor"
    jailcontroller.sp(375) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(377) : error 017: undefined symbol "CReplaceColor"
    ilga80 is offline
    vexium
    Member
    Join Date: Jan 2013
    Old 06-08-2013 , 06:30   Re: [CS:S/CS:GO] jailController (v1.1.1)
    Reply With Quote #9

    another big issue right now is that on map switch, (CS:GO) the players are not forced onto T but rather spawned alive as spectators but as T models in T spawns... very strange, but yea, it doesn't have them on a team, they're technically in spectator.
    vexium is offline
    pat841
    Member
    Join Date: Jun 2013
    Location: Boston
    Old 06-08-2013 , 08:39   Re: [CS:S/CS:GO] jailController (v1.1.1)
    Reply With Quote #10

    Quote:
    Originally Posted by ilga80 View Post
    jailcontroller.sp(369) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(371) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(373) : error 017: undefined symbol "CReplaceColor"
    jailcontroller.sp(375) : error 017: undefined symbol "CColorAllowed"
    jailcontroller.sp(377) : error 017: undefined symbol "CReplaceColor"
    You need to include colors.inc, I have attached the latest one.

    Quote:
    Originally Posted by vexium View Post
    another big issue right now is that on map switch, (CS:GO) the players are not forced onto T but rather spawned alive as spectators but as T models in T spawns... very strange, but yea, it doesn't have them on a team, they're technically in spectator.
    Try v1.1.2, should fix this issue.
    Attached Files
    File Type: inc colors.inc (14.1 KB, 426 views)
    __________________
    pat841 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 01:58.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode