AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [TF2] TF2Jail (Jailbreak for TF2) (https://forums.alliedmods.net/showthread.php?t=223874)

Drixevel 08-18-2013 02:18

[TF2] TF2Jail (Jailbreak for TF2)
 


Description:
Team Fortress 2 Jailbreak [TF2Jail] is a plugin designed to help Jailbreak server operators have better control over their server. It consists of features such as Warden, Anti-Freekilling system, last requests, Freeday for clients, map management and more. Almost all features of this plugin can be edited or disabled depending on how the server operator wants to run the server.

Credits:
  • nineteeneleven - Warden model and Blue Bans Panel.
  • ecca - Template for the Warden system.
  • Dreamy - Kills per second for the Anti-freekill system.
  • thetwistedpanda - Anti-Freekill Help with data timers.
  • ddhoward - Ammo killed on drop.
  • Friagram - Methods for the model code.
  • GoD-Tony - Great method to logging.
  • Powerlord - Discrepancies with the plugin and fixes.
  • Wing - Testing and commissioning some of the modules/features.

ConVars:
You can find the official list Here.

Commands:
You can find the official list of console commands Here.
You can find the official list of admin commands Here.

Last Request Config:
Learn how to configure Last Requests Here.

Recommended Plugins:
  • tf2-weapon-restrictions - Allows you to enable/disable weapons and items in-game.
  • Aim Names - Allows Guards team to know who is who with name tags when they point their cross-hair at them.
  • No Admin Configs - I use this to switch the action that the anti-freekill system takes based on if admins are online or not. (sm_jail_freekillers_action 2 without/0 with)

Requirements:


Includes:
Installation Guide:
  1. Drag & Drop 'TF2Jail.smx' into your Plugins folder.
  2. Drag & Drop 'TF2Jail.phrases.txt' file into the Translations folder.
  3. Install the necessary Extensions above and the plugins if you want.
  4. Download and place the 'tf2jail' folder into your Configs folder inside Sourcemod.
  5. Restart your server fully, do not just change the map.

How to Compile:
  1. Download the latest copy of 'TF2Jail.sp' off the Github Repository.
  2. Download the required Include files above.
  3. Download the latest copy of 'tf2jail.inc' inside of the Includes folder off the Github Repository.

Code Repository | Download | Report Bugs | Donate

Drixevel 08-18-2013 02:34

Re: [TF2] TF2Jail (Jailbreak)
 
[Official Map List]

GameBanana List of Maps shall be Here.

[Developer]

I put together some natives I thought would be useful to developers who want to create their own plugins. Feel free to use them in your own plugins if you have anything you need. I will be pasting the list of sub module plugins in this thread.

List of Natives can be found Here.

Code:

// NOTE: Requires you check if the player is in-game, alive, etc.

//Natives
/**
 * Warden Check if exists.
 *
 * @return                True on success, false on failure.
 **/
native TF2Jail_WardenActive();

/**
 * Returns if client is Warden.
 *
 * @param client                Client is Warden.
 * @return                True on success, false on failure.
 **/
native TF2Jail_IsWarden(client);

/**
 * Sets a client to Warden.
 *
 * @param client                Client to become Warden.
 * @noreturn
 **/
native TF2Jail_WardenSet(client);

/**
 * Remove the Warden if there is one.
 *
 * @param client                Client to remove Warden.
 * @noreturn
 **/
native TF2Jail_WardenUnset(client);

/**
 * Returns if the client is a Freeday.
 *
 * @param client                Client is Freeday.
 * @return                True on success, false on failure.
 **/
native TF2Jail_IsFreeday(client);

/**
 * Sets a client to Freeday.
 *
 * @param client                Client to give Freeday.
 * @noreturn
 **/
native TF2Jail_GiveFreeday(client);

/**
 * Returns if the client is a Rebel.
 *
 * @param client                Client is Rebel.
 * @return                True on success, false on failure.
 **/
native TF2Jail_IsRebel(client);

/**
 * Marks a client as a Rebel.
 *
 * @param client                Client to mark Rebel.
 * @noreturn
 **/
native TF2Jail_MarkRebel(client);

/**
 * Returns if the cilent is a Freekiller.
 *
 * @param client                Client is Freekiller.
 * @return                True on success, false on failure.
 **/
native TF2Jail_IsFreekiller(client);

/**
 * Marks the client as a Freekiller.
 *
 * @param client                Client to mark Freekiller.
 * @noreturn
 **/
native TF2Jail_MarkFreekiller(client);

/**
 * Strip clients to melee while using TF2Jail Rules. (Keep Weapons, ammo = 0)
 *
 * @param client                Client to Strip to melee.
 * @noreturn
 **/
native TF2Jail_StripToMelee(client);

/**
 * Strip client to melee entirely using TF2Jail rules.
 *
 * @param client                Client to Strip entirely.
 * @noreturn
 **/
native TF2Jail_StripAllWeapons(client);

/**
 * Lock warden from being allowed.
 *
 * @noreturn
 **/
native TF2Jail_LockWarden();

/**
 * Unlock warden from being allowed.
 *
 * @noreturn
 **/
native TF2Jail_UnlockWarden();

/**
 * Log using TF2Jail's logging system/rules.
 *
 * @param log                        String or text to log.
 * @param ...                        Formatting parameters.
 * @noreturn
 **/
native TF2Jail_Log(const String:log[], any:...);

/**
 * Returns if the current round is a Last Request day.
 *
 * @return                True on success, false on failure.
 **/
native TF2Jail_IsLRRound();

/**
 * Returns if the current round is a Last Request day.
 *
 * @param Status                Cell to execute. (OPEN, CLOSE, LOCK, UNLOCK) (If doors are locked, they must be unlocked to open)
 * @return                True on success, false on incompatible map.
 **/
native TF2Jail_ManageCells(eDoorsMode:Status);

//Forwards
/**
 * Called when the Warden has been assigned/created via the plugin or natives.
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnWardenCreated(client);

#pragma deprecated Use TF2Jail_OnWardenCreated(client) instead.
forward Warden_OnWardenCreated(client);

/**
 * Called when the Warden has been removed/retired via the plugin or natives.
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnWardenRemoved(client);

#pragma deprecated Use TF2Jail_OnWardenRemoved(client) instead.
forward Warden_OnWardenRemoved(client);

/**
 * Called when a last request is about to be executed.
 *
 * @param Handler                String or text called by the Handler in the Last Request configuration file. (Use this to differentiate your custom LRs)
 * @noreturn
 **/
 forward TF2Jail_OnLastRequestExecute(const String:Handler[]);
 
 /**
 * Called when a client is given Freeday. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreedayGiven(client);

 /**
 * Called when a client has been removed from Freeday. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreedayRemoved(client);

 /**
 * Called when a client has marked as a Freekiller. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreekillerGiven(client);

 /**
 * Called when a client has been cleared from Freekiller. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnFreekillerRemoved(client);

 /**
 * Called when a client has marked as a Rebel. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnRebelGiven(client);

 /**
 * Called when a client has been cleared from Rebel. (post)
 *
 * @param client                Client Index
 * @noreturn
 **/
forward TF2Jail_OnRebelRemoved(client);

[Modules] - Modules are plugins that run separately from TF2Jail but add extra features that aren't built into TF2Jail itself.
============================================= ===========
[Prisoner Models - 1.0.0]

Description: Allows Prisoners/Red team to be able to equip a model which allows them to look like Prisoners. I built the plugin and Nineteen built the models. (Special thanks to him)

SMX: -- Download --
Source: -- Download --

Models:
http://nineteeneleven.info/downloads...oner_models.7z
============================================= ===========
[Team Bans 1.0.5]

Description: Allows administrators to ban players red the red or blue team. (Development)

SMX: -- Download --
Source: -- Download --
Translation: -- Download --
============================================= ===========
[Warden Votes - 1.0.2] [Commissioned by Wing of IdleServer.com]

Description: Allows server operators to set Wardens to be voted for instead of clients becoming warden via commands.

SMX: -- Download --
Source: -- Download --
============================================= ===========

Newbie1992 08-18-2013 03:18

Re: [TF2] TF2Jail (Jailbreak)
 
wow looks nice ... will test it

thanks!

Drixevel 08-18-2013 07:02

Re: [TF2] TF2Jail (Jailbreak)
 
Quote:

Originally Posted by Newbie1992 (Post 2015928)
wow looks nice ... will test it

thanks!

Keep in mind, I'm still working on it. I posted it here for feedback, you're most like to experience bugs with it. Any feedback as well to new functionality I can add or command variables/commands in-general would be nice as well.

- Jack

Also, I'll be making the list of credits this afternoon on the Github repo wiki to keep everything organized for me, just to let you know.

Snaggle 08-18-2013 09:49

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
I had never played Jailbreak due to me not being a fan of Counter Strike, but had always wanted to try it out and see what the hype was about. I may just give this a shot, looks cool.

Drixevel 08-18-2013 13:36

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
Quote:

Originally Posted by Snaggle (Post 2016210)
I had never played Jailbreak due to me not being a fan of Counter Strike, but had always wanted to try it out and see what the hype was about. I may just give this a shot, looks cool.

If you run a multi-mod server, I'd like for you to give me feedback on if it disables properly which I'm assuming you do.

Cheers my good man,
- Jack

kamild1996 08-18-2013 15:22

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
What? Two weeks ago I configured my server to work in Jailbreak mode by setting up all plugins by myself, I even wrote one plugin to complete it. And today there is a Jailbreak TF2 Manager in one plugin? I am now so angry at me :C
Anyway, I am also very curious how this plugin make things working so I will test it like tomorrow. Thanks for developing that! Can't wait :)

PS: Do you have any screenshots of Warden model?

Drixevel 08-18-2013 16:34

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
Quote:

Originally Posted by kamild1996 (Post 2016500)
What? Two weeks ago I configured my server to work in Jailbreak mode by setting up all plugins by myself, I even wrote one plugin to complete it. And today there is a Jailbreak TF2 Manager in one plugin? I am now so angry at me :C
Anyway, I am also very curious how this plugin make things working so I will test it like tomorrow. Thanks for developing that! Can't wait :)

PS: Do you have any screenshots of Warden model?

It has a few issues to it I need to address but most of it should work for you. I'll post up screenshots soon of the model.

- Jack

nineteeneleven 08-18-2013 18:08

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
Quote:

Originally Posted by r3dw3r3w0lf (Post 2016571)
I'll post up screenshots soon of the model.

you can find screenshots, where the model came from.

http://nineteeneleven.info/models/

Drixevel 08-19-2013 10:29

Re: [TF2] TF2Jail (Jailbreak for TF2)
 
Quote:

Originally Posted by nineteeneleven (Post 2016633)
you can find screenshots, where the model came from.

http://nineteeneleven.info/models/

Of course!

- Jack


All times are GMT -4. The time now is 02:35.

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