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

Ultimate Jail Mod v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   Gameplay        Approver:   GHW_Chronic (70)
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-01-2006 , 16:53   Ultimate Jail Mod v1.1
Reply With Quote #1

Ultimate Jail Mod

Description

This plugin is designed to phase out the older jailmods that were static and poorly coded. It includes many new features, and origins are loaded dynamically.

As I get more origins for jails, I will add them to the zip here. If you make any origin files, please PM them to me or post them here.

Like other jail mods, you must have HarbuRP installed.

Unlike other jail mods, however, there is a change in the way it operates. If a person leaves a jail, they are not classified as free. There is an option in the menu called "Free Target Player", which will free a player being looked at. If amx_jail_reconnect is 0 and the user reconnects, or amx_jail_death is 1 and the user dies, they will also be freed.

This can be evaded however - setting amx_jail_mode to 1 (the default) will make the plugin operate like the regular Harbu jailmod.

Installation

This plugin is file based. The files for maps go in "addons/amxmodx/configs/jailmod/<mapname>.ini". For example, iburgcity_b3v6 would be "addons/amxmodx/configs/jailmod/iburgcity_b3v6.ini". Note that it is dynamic - if you change the directory of addons/amxmodx/configs, the plugin will dynamically search for that.

There is an example of the syntax for the files inside the "jailmod_origins.zip" file.

You can have a maximum of 20 jails for each map - if you need more, you can open the .sma, change MAX_JAILS to something higher, then recompile.

The SQL connection piggybacks off the Harbu settings (economy_mysql_x). Note that this plugin also requires SQLx (which can be used prior to 1.70, but you will have to download the module). If you are not using auto-loading, Engine is required (which Harbu does anyway, so I don't know why that would be a problem).

Commands

jailmodmenu - opens the menu of jails

Cvars:

amx_jail_table - the table that jailed users should be stored in (will be created dynamically if it doesn't exist)
amx_jail_reconnect - if 1, when a jailed user reconnects, they will be sent back to jail
amx_jail_death - if 1, when a jailed user dies, they will not be teleported back into jail
amx_jail_mode - if 1, will act the same way as Harbu jail mod (users that die close to jail will be put back into it, use amx_jail_distance to adjust), if 2, jail mod will throw user back in jail regardless of distance, if 0, jailmod will be disabled entirely
amx_jail_distance - the distance in units between how far the user must be from the jail position in order to be spawned back into it (default 50)
Attached Files
File Type: zip jailmod_origins.zip (284 Bytes, 7271 views)
File Type: sma Get Plugin or Get Source (jailmod.sma - 9827 views - 10.6 KB)
__________________

Last edited by Hawk552; 01-11-2007 at 21:21.
Hawk552 is offline
Send a message via AIM to Hawk552
Old 12-01-2006, 17:00
The Specialist
This message has been deleted by The Specialist.
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 12-01-2006 , 17:23   Re: Ultimate Jail Mod v1.0
Reply With Quote #2

sexy.
__________________
i stop around here and there.
Da_sk8rboy is offline
XmINiX
Senior Member
Join Date: Nov 2006
Location: Your basement
Old 12-01-2006 , 18:29   Re: Ultimate Jail Mod v1.0
Reply With Quote #3

I like it +karma
__________________
+Karma me if i am helpful!
XmINiX is offline
Send a message via AIM to XmINiX Send a message via MSN to XmINiX Send a message via Yahoo to XmINiX
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 12-02-2006 , 11:34   Re: Ultimate Jail Mod v1.0
Reply With Quote #4

/me ignores this thread.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-02-2006 , 11:35   Re: Ultimate Jail Mod v1.0
Reply With Quote #5

Quote:
Originally Posted by Xanimos View Post
/me ignores this thread.
bastard
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 12-02-2006 , 13:25   Re: Ultimate Jail Mod v1.0
Reply With Quote #6

I like this & hope it gets approved, nice work Hawk.
__________________
i stop around here and there.
Da_sk8rboy is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 12-02-2006 , 13:31   Re: Ultimate Jail Mod v1.0
Reply With Quote #7

I'm sorry, but can you clarify. If this requires HarbuRP then how is it compatible with any mod?

Quote:
Originally Posted by Hawk552
Like other jail mods, you must have HarbuRP installed.
...
This is designed for The Specialists, but it can technically be used on any mod.


I'm guessing you mean if your mod is TS then you need HarbuRP to be able to use this??

Last edited by vittu; 12-02-2006 at 13:34.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 12-02-2006 , 13:45   Re: Ultimate Jail Mod v1.0
Reply With Quote #8

Quote:
Originally Posted by vittu View Post
I'm sorry, but can you clarify. If this requires HarbuRP then how is it compatible with any mod?





I'm guessing you mean if your mod is TS then you need HarbuRP to be able to use this??
I was thinking in terms of modules, but it's the cvars (economy_mysql_x) that actually force it to be used with HarbuRP and thus with TS.

I've removed mention of being able to use it anywhere and set the modification to TS.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
over_mind
Member
Join Date: Aug 2006
Location: Cajun Country!
Old 01-01-2007 , 23:45   Re: Ultimate Jail Mod v1.0
Reply With Quote #9




What happens when I try to use the Free Player option in the menu.

1.75 amxmodx

My map config files looks like this:

Code:
[Cell 1]
origin "-2725, 2211, -347"
command "/cell1"
[Cell 2]
origin "-2725, 2211, -347"
command "/cell2"
[Cell 3]
origin "-2722, 1965, -347"
command "/cell3"
[Gas Chamber]
origin "-2745, 2374, -346"
command "/gaschamber"
[Interrogation Room]
origin "-2672, 2645, -348"
command "/introom"
[Crazy Room]
origin "-2703, 1848, -342"
command "/crazy"
BTW exactly how is the command "" supposed to look like? I just put in /cell1 or w/e.

Last edited by over_mind; 01-02-2007 at 03:31.
over_mind is offline
Send a message via AIM to over_mind Send a message via MSN to over_mind
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-02-2007 , 00:31   Re: Ultimate Jail Mod v1.0
Reply With Quote #10

Not sure why, I'll look into it.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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 03:23.


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