Ultimate Jail Mod
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.
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).
jailmodmenu - opens the menu of jails
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)
Last edited by Hawk552; 01-11-2007 at 22:21.