Raised This Month: $32 Target: $400
 8% 

[CS:S] Jail Captain


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
3521
Plugin Version:
4.4
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Jail captain for be a captain for those servers having problem which counter-Terrorist should decide the rules for the round.
    Old 02-09-2013 , 18:36   [CS:S] Jail Captain
    Reply With Quote #1

    Description:

    Jail captain for be a captain for those servers having problem which counter-Terrorist should decide the rules for the round.


    Screenshot:

    [IMG]http://img20.**************/img20/2813/captainoo.jpg[/IMG]


    Special features:

    -Chat colors (option captain_msg plugin)
    -Sound when the captain use say chat (option captain_msg plugin)
    -More ways to warn the message of captain
    -Voice detection (you can be a captain using your voice)
    -Capitals detection with different color (option captain_msg plugin)
    -Show last order (option captain_msg plugin)
    -Multi-language support
    -Native for developers


    Commands:

    sm_captain or sm_c - be a captain (also you can be a captain using your voice)
    sm_nocaptain or sm_noc - leave captain
    sm_removecaptain - Remove the existing captain (admin generic required)


    Requeriments (optional for voice features):

    DHooks
    Voiceannounce_ex


    Soon:

    -Vote for be a captain
    -More cvars
    -More Special effect for captain



    Natives:
    Code:
    /**
     * Get the current captain
     */   
    native JC_GetCaptain();
    Credits:

    https://forums.alliedmods.net/showthread.php?p=1476638 for being the first that release a plugin of this type, sorry, but I've always wanted to offer support of a plugin of it


    Working fine in my jail servers:




    Suggestions are welcome

    btw, his plugin was private but I decided to publish it because many people asked me for it


    Donations (optional):

    If you apreciate my work, you can donate me via paypal or with a trade offer


    Download:

    Main repository
    Direct download
    Code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 09:04. Reason: changed captain commands to the correct
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-09-2013 , 18:38   Re: [CS:S] Jail Captain
    Reply With Quote #2

    *reserved* for the plugins that will use natives of captain

    Plugins using this native:
    1. Captain Aura by me
    2. Captain Messages by me
    3. Captain Order by me




    Example plugin using native:
    PHP Code:
    #pragma semicolon 1
    #include <sourcemod>
    #include <captain>


    public OnPluginStart()
    {
        
        
    RegConsoleCmd("sm_mecaptain"CheckCaptain);
    }

    public 
    ActionCheckCaptain(clientargs)
    {
        new 
    capitan JC_GetCaptain(); // get captain

        
    if(client == capitan)
                
    PrintToChatAll("YOU ARE CAPTAIN :D");
        else
                
    PrintToChatAll("YOU ARE NOT CAPTAIN :(");

    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 02-24-2013 at 08:49.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 02-10-2013 , 00:33   Re: [CS:S] Jail Captain
    Reply With Quote #3

    Quote:
    Originally Posted by Franc1sco View Post
    "YOU NOT ARE CAPTAIN "
    You are not the captain*
    Mitchell is offline
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-10-2013 , 11:56   Re: [CS:S] Jail Captain v4.3
    Reply With Quote #4

    New version 4.3

    -Changed prefix of natives
    -Added multi-language support
    -Minor code changes
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 02-10-2013 at 11:56.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-10-2013 , 11:59   Re: [CS:S] Jail Captain v4.3
    Reply With Quote #5

    New plugin using the native:


    Captain Aura
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 09:03.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-10-2013 , 21:16   Re: [CS:S] Jail Captain v4.3.1
    Reply With Quote #6

    New version 4.3.1

    -Added admin command for remove captain - sm_removecaptain
    -Fixed a bug in the translation of "Last order of captain"
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.

    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-24-2013 , 08:39   Re: [CS:S] Jail Captain v4.4
    Reply With Quote #7

    New version v4.4

    -More modular
    -Now the messages functions are in separate plugin



    Then, new sub-plugin for captain:


    Captain messages


    Cvars:
    Put in server.cfg
    Code:
    sm_captain_order 1 // Enable/disable show last order of captain
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 09:03.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    Franc1sco
    Veteran Member
    Join Date: Oct 2010
    Location: Spain (Madrid)
    Old 02-24-2013 , 08:45   Re: [CS:S] Jail Captain v4.4
    Reply With Quote #8

    New sub plugin:


    Jail Order

    A menu for captain for give orders


    Command:

    sm_order (!order) - for open menu


    Screenshoot:

    http://steamcommunity.com/sharedfile.../?id=129273115


    Configure cfg/sourcemod/captain_order.txt


    At request of https://forums.alliedmods.net/showthread.php?t=209132
    __________________
    Veteran Coder -> Activity channel
    Coding on CS2 and taking paid and free jobs.

    Contact: Steam, Telegram or discord ( franug ).

    You like my work? +Rep in my steam profile comments or donate.


    Last edited by Franc1sco; 12-20-2015 at 09:02.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
    nynCuKaH
    Member
    Join Date: Apr 2012
    Location: void
    Old 04-06-2013 , 14:15   Re: [CS:S] Jail Captain v4.4
    Reply With Quote #9

    Good job
    __________________
    nynCuKaH is offline
    warez57
    Junior Member
    Join Date: Oct 2012
    Location: France
    Old 06-13-2013 , 10:15   Re: [CS:S] Jail Captain v4.4
    Reply With Quote #10

    Hi, I Have 2-3 suggestion

    Add command for change color aura this possible ? ( Blue)

    possible that the captain is chosen randomly?
    For the menu "I order garlic opens alone?" (No need to write! Order)
    Prevent flood the order plugin?

    Sorry Bad English ( I am french)

    Tanks you And good Job !

    Last edited by warez57; 06-15-2013 at 06:06.
    warez57 is offline
    Send a message via Skype™ to warez57
    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 18:17.


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