Raised This Month: $ Target: $400
 0% 

[CS:GO] Special Jailbreak (like cs 1.6 style) with days, shop and different branches


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Plugin ID:
4891
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A jailbreak mod with special days and jail shop with the cs 1.6 style
    Old 11-12-2015 , 11:45   [CS:GO] Special Jailbreak (like cs 1.6 style) with days, shop and different branches
    Reply With Quote #1

    The servers that can help me to support this mod will be listed here:



    https://gaming-force.es/ JailBreak IP 51.83.59.241:28021


    Description:

    A long time ago I made a jailbreak server with special days and jail shop like cs 1.6 style. Also include a very structured menu where you can found all.


    Pressing the button "." of your keyboard appear the main menu.

    The main menu is:

    (this opcion only appear to guards)Be simon (or Simon menu is you already are simon)
    (this opcion only appear to guards) Choose weapons (for guards can select their weapons in spawn)
    Jail shop
    Hats menu
    Read rules (i removed it for now)
    Admin menu

    Simon menu have:

    Press jail cells (for open or close jail cells with the simon's menu)
    Give FreeDay to everybody
    Give FreeDay to someone (next, a menu with all the prisioners appear)
    Kill a random prisioner (feature for some jail games where the simon say "now a random prison will die")
    Enable/Disable Friendly fire (jail box for make fight prisioners vs prisioners and the FF dont affect to guards, only prisioners)
    Leave Simon


    The day are random in the round start. The Day Jails are:

    Simon day
    A random guard is selected as Simon

    Zombie day
    The jails cells are opened automatically and prisioners receive weapons. Guards are zombies with a zombie skin, with knockback (like a zombie server) and with 10000 HP. Include darkness effect in the map ( http://steamcommunity.com/sharedfile.../?id=371086553 )


    HideNseek Day
    Guards will be frozen for 1 minute and the prisoners have to hide within the one minute. When 1 minute is reached, guards are unfrozen and prisioners are frozen, also the darkness affect is turned ON. Guards are a big transparent chicken for be visible for prisioners ( http://steamcommunity.com/sharedfile.../?id=380163318 ).


    NoScope day
    Jail cells are opened automatically, the gravity is very low (big jumps), prisioners cant kill to guards and guards have a AWP but they cant use the awp zoom.

    War Day
    Prisioners are frozen the first 30 seconds. Time where the guards can be distributed around the map. Then prisioners and guards receive weapons and the War start.


    War Free For All Day
    In the first 30 seconds cant attack. Time where the all can be distributed around the map. Then prisioners and guards receive weapons and the War start where only one can survive.

    Freeze Tag Day
    The guards must catch prisioners for freeze him but prisioners can save to teammates if they touch him. Sprint enabled in this round pressing E button.

    FreeDay Day
    All prisioners receive FreeDay and the jail cells are opened automatically.


    I included in these pack shortsprint, afk manager, and anticamp


    Cvars:
    Put in server.cfg
    Code:
    sm_franugjailbreak_day "5" // every X rounds, a special round (not simon round) started

    Requeriments:

    The last version of SM_Hosties
    Jail doors -> https://forums.alliedmods.net/showthread.php?p=2306018


    For developers:

    The API is:
    PHP Code:
    // JAILBREAK natives by Franc1sco franug


    // Teams index for JAILBREAK plugin
    #define JB_GUARDS 1
    #define JB_PRISIONERS 2
    #define JB_BOTH 3


    /**
     * Add a Award to the main plugin.
     *
     * @param name            Award name.
     * @param price           Award Price.
     * @param teamallowed            Team allowed for use this award.
     * 
     * @noreturn                   
     */
    native JB_AddAward(const String:name[], priceteamallowed);

    /**
     * Select a special round to do this round.
     *
     * @param name            Round name.
     * 
     * @noreturn                   
     */
    native JB_ChooseRound(const String:name[]);

    /**
     * Called when a Award has been bought.
     *
     * @param client            Client that bought the award.
     * @param price           Award Bought.               
     */
    forward JB_OnAwardBoughtclient, const String:awardbought[]);

    /**
     * Remove a Award to the main plugin.
     *
     * @param name            Award name.
     * 
     * @noreturn                   
     */
    native JB_RemoveAward(const String:name[]);

    /**
     * Set as special class (canīt buy awards) a player.
     *
     * @param client            Client target.
     * @param special            Set true or false the state of "special class".
     * 
     * @noreturn                   
     */
    native JB_SetSpecial(clientbool:special);

    /**
     * Check if a player is a special class.
     *
     * @param client            client index
     * 
     * @return                    True if Special class, false if not.
     */
    native bool:JB_GetSpecial(client);

    /**
     * Set credits to a client.
     *
     * @param client            Client target.
     * @param credits            Number of credit for set.
     * 
     * @noreturn                   
     */
    native JB_SetCredits(clientcredits);

    /**
     * Check if a player is a special class.
     *
     * @param client            Client target.
     * 
     * @return                    Return current credits of the target
     */
    native JB_GetCredits(client);

    /**
     * Give FreeDay to a player.
     *
     * @param client            Client target.
     * 
     * @noreturn                   
     */
    native JB_GiveFD(client);

    /**
     * Check if a player is FD.
     *
     * @param client            client index.
     * 
     * @return                    True if FD, false if not.
     */
    native bool:JB_GetFD(client);

    /**
     * Sent translations to the main plugin.
     *
     * @param client            File with translations.
     * 
     * @noreturn                   
     */
    native JB_LoadTranslations(const String:langfile[]); 

    /**
     * Check if a player is a special class.
     *
     * @param CurrentRound           String to store the name of current round.
     * 
     * @return                    Return true if a round has been selected, false if not.
     */
    native bool:JB_GetRound(String:CurrentRound[]); 

    A example subplugin is this:
    PHP Code:
    #pragma semicolon 1
    #include <sourcemod>
    #include <sdktools>
    #include <franug_jb>

    // configuration part
    #define AWARDNAME "zeus" // Name of award
    #define PRICE 30 // Award price
    #define AWARDTEAM JB_GUARDS // Set team that can buy this award (use JB_BOTH or JB_GUARDS or JB_PRISONS)
    #define TRANSLATIONS "jailbreak_zeus.phrases" // Set translations file for this subplugin
    // end configuration


    // dont touch
    public OnPluginStart()
    {
        
    CreateTimer(0.1Lateload);
    }

    public 
    Action:Lateload(Handle:timer)
    {
        
    LoadTranslations(TRANSLATIONS); // translations to the local plugin
        
    JB_LoadTranslations(TRANSLATIONS); // sent translations to the main plugin
        
        
    JB_AddAward(AWARDNAMEPRICEAWARDTEAM); // add award to the main plugin
    }
    public 
    OnPluginEnd()
    {
        
    JB_RemoveAward(AWARDNAME); // remove award when the plugin is unloaded
    }
    // END dont touch part


    public JB_OnAwardBoughtclient, const String:awardbought[])
    {
        if(
    StrEqual(awardboughtAWARDNAME))
        {
            
    // use your custom code here
            
    PrintToChat(client" \x04[Franug-JailBreak] \x05%t""Has comprado un arma ZEUS"); // translation phrase
            
    GivePlayerItem(client"weapon_taser");
        }


    Warning, I used it a long time ago in my server so probably I forget something to add in the zip because this was a big jailbreak mod that I made. Report bugs! and I am searching to someone to can give me ftp access to his server for help me to support this mod better and for free.


    Download:

    Normal branch:
    Only captain can start days branch:



    Donations (optional):

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


    Enjoy! ;)
    __________________
    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; 05-04-2020 at 19:08.
    Franc1sco is offline
    Send a message via MSN to Franc1sco
     



    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 08:29.


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