AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Special Jailbreak (like cs 1.6 style) with days, shop and different branches (https://forums.alliedmods.net/showthread.php?t=274650)

Franc1sco 11-12-2015 11:45

[CS:GO] Special Jailbreak (like cs 1.6 style) with days, shop and different branches
 
The servers that can help me to support this mod will be listed here:

https://cache.gametracker.com/server...b_560_95_1.png

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! ;)

iGANGNAM 11-12-2015 15:09

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
thanks for sharing, even I like your hat plugin more than whole jailbreak mod ;)
even so, gamedata file is missing

Franc1sco 11-12-2015 18:04

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
1 Attachment(s)
Quote:

Originally Posted by iGANGNAM (Post 2362472)
I like your hat plugin more than whole jailbreak mod ;)

You dont prefer my jailbreak mod? I cry

Quote:

Originally Posted by iGANGNAM (Post 2362472)
even so, gamedata file is missing

I added it to the zip in the first post, re-download it

Lannister 11-12-2015 18:29

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
Could you add a cvar or something to regulate how many "special rounds" can we get for a map? or allow Wardens (Simon) to decide if in the next round it will be a "special day?" because it will be too heavy for people that are used to play Jailbreak normally and to follow orders, if every round they play special days, like Zombie mod, it's like it will loose the essence of what it is Jailbreak.

----------

Podrias agregar un cvar o algo para regular cuantas rondas "especiales" pueden haber por mapa? o tal vez, en el menu del Simon que el pueda decidir si en la proxima ronda se va a jugar una ronda "especial" aleatoria? ya que si todas las rondas son aleatorias, ya sea Zombie, escapar, o lo que sea, va a ser demasiado pesado para todos los jugadores que estan acostumbrado a lo que es "seguir ordenes" sin contar que perderia mucho la escencia del juego. Gracias y segui así!

supreeda 11-13-2015 01:23

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
i think only warden can use menu please someone make it for me , thank first

this is a warden plugin : https://forums.alliedmods.net/showthread.php?p=1476638

Franc1sco 11-13-2015 04:18

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
Quote:

Originally Posted by Lannister (Post 2362509)
Could you add a cvar or something to regulate how many "special rounds" can we get for a map? or allow Wardens (Simon) to decide if in the next round it will be a "special day?" because it will be too heavy for people that are used to play Jailbreak normally and to follow orders, if every round they play special days, like Zombie mod, it's like it will loose the essence of what it is Jailbreak.

----------

Podrias agregar un cvar o algo para regular cuantas rondas "especiales" pueden haber por mapa? o tal vez, en el menu del Simon que el pueda decidir si en la proxima ronda se va a jugar una ronda "especial" aleatoria? ya que si todas las rondas son aleatorias, ya sea Zombie, escapar, o lo que sea, va a ser demasiado pesado para todos los jugadores que estan acostumbrado a lo que es "seguir ordenes" sin contar que perderia mucho la escencia del juego. Gracias y segui así!

I will do it

Quote:

Originally Posted by supreeda (Post 2362578)
i think only warden can use menu please someone make it for me , thank first

this is a warden plugin : https://forums.alliedmods.net/showthread.php?p=1476638

Not needed, in this mod the warden is called simon

supreeda 11-13-2015 11:28

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
but simon can use all police xD

any hat don't work

Cipop 11-13-2015 12:46

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
Working on a custom version of the plugin, with new special days for my brazilian JailBreak server! Later i will share with you guys!

Franc1sco 11-14-2015 02:03

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
Quote:

Originally Posted by supreeda (Post 2362683)
but simon can use all police xD

any hat don't work

Well as I said, I am searching to someone that can help me to test it my plugin in steam so feel free to add me if you want a better support

Quote:

Originally Posted by Cipop (Post 2362711)
i will share with you guys!

Thats would be good

iGANGNAM 11-15-2015 06:23

Re: [CS:GO] Jailbreak special days with jail shop (like cs 1.6 style)
 
hats plugin is working, thank you ;)


All times are GMT -4. The time now is 04:10.

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