AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Ultimate Jail Mod v1.1 (https://forums.alliedmods.net/showthread.php?t=47989)

Hawk552 12-01-2006 16:53

Ultimate Jail Mod v1.1
 
2 Attachment(s)
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)

Da_sk8rboy 12-01-2006 17:23

Re: Ultimate Jail Mod v1.0
 
sexy.

XmINiX 12-01-2006 18:29

Re: Ultimate Jail Mod v1.0
 
I like it +karma

Xanimos 12-02-2006 11:34

Re: Ultimate Jail Mod v1.0
 
/me ignores this thread.

Hawk552 12-02-2006 11:35

Re: Ultimate Jail Mod v1.0
 
Quote:

Originally Posted by Xanimos (Post 409826)
/me ignores this thread.

bastard

Da_sk8rboy 12-02-2006 13:25

Re: Ultimate Jail Mod v1.0
 
I like this & hope it gets approved, nice work Hawk.

vittu 12-02-2006 13:31

Re: Ultimate Jail Mod v1.0
 
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??

Hawk552 12-02-2006 13:45

Re: Ultimate Jail Mod v1.0
 
Quote:

Originally Posted by vittu (Post 409868)
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.

over_mind 01-01-2007 23:45

Re: Ultimate Jail Mod v1.0
 
http://i101.photobucket.com/albums/m...awkjailmod.jpg


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.

Hawk552 01-02-2007 00:31

Re: Ultimate Jail Mod v1.0
 
Not sure why, I'll look into it.


All times are GMT -4. The time now is 19:42.

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