Open Jail
Intro:
I remade the plugin originally made by DanielKza as there were some requests for it opening after a specified time therefore i just recoded his version to do what i wanted.
Description
it opens the jail on surf maps, automatically every X seconda and manually by using a command.
Command in-game:
Code:
amx_openjail [Time] //Opens the jail after a specified time, leave time blank to open inmedietly. Requires: C flag aka kick flag
Examples: amx_openjail 4 and amx_openjail
Cvars:
Code:
open_jail_active 1 //whether this plugin is working or not |1 for active 2 for inactive
open_jail_time -1.0 //Opens jail ever X seconds, if you do not wish to use this function don't put it in amxx.cfg or just put it negative. remember it should use 1 decimal like 0.9 or 1.2 turned off by default, use a positive number to turn it on
open_jail_message 1 //sends a message to the players if the jail is opened |0 for no message at all, 1 for message when an admin opens jail and 2 for always send a message
original thread:
https://forums.alliedmods.net/showthread.php?p=511244
Pim