Skip to content
thomas edited this page May 23, 2018 · 19 revisions

This plugins allows players to open a menu with ","-Key (buyammo) or command.
It will show different menus for Terrorists, Counter-Terrorists, admin & warden.
The menu shows only features that are enabled (e.g at EventDays no warden menu).
Possibiliy to add custom menu item with extra support plugin.


Warden Menu (picture not uptodate)

Commands

sm_menu - opens the menu depends on players team/rank
sm_eventdays - open a vote EventDays menu for player
sm_setdays - open a set EventDays menu for warden or admins
sm_voteday - opens/start the vote a eventday menu for all player
 
set your own custom command. take a look at "sm_menu_cmds_***"

ConVars

// 0 - disabled, 1 - enable jailbrek menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_enable "1"

// Set your chat prefix for this plugin.
// -
// Default: "[{green}MyJB.Menu{default}]"
sm_menu_prefix "[{green}MyJB.Menu{default}]"

// Set your custom chat command for open menu(!menu (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "panel, menus, m"
sm_menu_cmds_menu "panel, menus, m"

// Set your custom chat command for open menu(!eventdays (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "days, day, ed"
sm_menu_cmds_days "days, day, ed"

// Set your custom chat command for open menu(!menu (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "sd, setdays"
sm_menu_cmds_setday "sd, setdays"

// Set your custom chat command for open menu(!menu (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "vd, votedays"
sm_menu_cmds_voting "vd, votedays"

// 0 - disabled, 1 - enable ct jailbreak menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_ct "1"

// 0 - disabled, 1 - enable t jailbreak menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_t "1"

// 0 - disabled, 1 - enable warden jailbreak menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_warden "1"

// 0 - disabled, 1 - enable deputy jailbreak menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_deputy "1"

// 0 - disabled, 1 - enable set eventdays menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_setdays "1"

// 0 - disabled, 1 - enable vote eventdays menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_votedays "1"

// remove 1. & 2. on first page, to avoid conflict with weapon switch
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_clean "1"

// 0 - use 'config/sorting-eventdays.ini' on event day voting / 1 - Shuffle EventDays on voting
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_shuffle "1"

// 0 - disabled, 1 - allow player vote for 'no Event Day' on eventday voting
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_vote_noevent "1"

// 0 - disabled, 1 - enable close menu after action
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_close "0"

// 0 - disabled, 1 - enable open menu on every roundstart
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_start "1"

// 0 - disabled, 1 - enable join team on menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_team "1"

// Show welcome message to newly connected users.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_welcome "1"

// 0 - disabled, 1 - enable voting for a eventday
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_voteday "1"

// Set flag for admin/vip to start a voting & get admin menu
// -
// Default: "g"
sm_menu_flag "g"

// 0 - disable admin commands in all menus, 1 - show admin commands only in MyJailbreak menu, 2 - show admin commands only in !admin menu, 3 - show admin commands in all menus
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "3.000000"
sm_menu_admin "2"

// 0 - disabled, 1 - allow warden to start a voting
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_voteday_warden "1"

// 0 - disabled, 1 - allow admin/vip  to start a voting
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_menu_voteday_admin "1"

// Rounds cooldown after a voting until voting can be start again
// -
// Default: "3"
// Minimum: "0.000000"
sm_menu_voteday_cooldown_day "3"

// Rounds until voting can be start after mapchange.
// -
// Default: "3"
// Minimum: "0.000000"
sm_menu_voteday_cooldown_start "3"

With extra plugin MyJailbreak - Custom Menu items - plugins/MyJailbreak/disabled/menu_custom.smx you can add your own items to the menus.
Check the config file for custom menu items configs/MyJailbreak/menu_custom.cfg
Example:

"CustomMenuItems" // You need to enable custom_menu.smx to use this!
{
	"SoccerBall" // unique ID
	{
		// https://forums.alliedmods.net/showthread.php?t=283311
		"title"			"Soccer Ball" // title show in menu
		"command"		"ball" // command to execute
		"role"			"1,2" // 1 = warden, 2 = deputy, 3 = guard, 4 = prisoner, 5 = spec
		"flags"			"a" // flags for admins/vip
		"postion"		"top" // position in menu
	}
	"Store" // unique ID
	{
		"title"			"Store" // title show in menu
		"command"		"sm_store" // command to execute
		"role"			"3,4,5" // 1 = warden, 2 = deputy, 3 = guard, 4 = prisoner, 5 = spec
		"flags"			"" // flags for admins/vip
		"postion"		"top" // position in menu,
	}
	"Suicide" // unique ID
	{
		"title"			"Kill yourself" // title show in menu
		"command"		"kill" // command to execute
		"role"			"1,2,3,4,5" // 1 = warden, 2 = deputy, 3 = guard, 4 = prisoner, 5 = spec
		"flags"			"" // flags for admins/vip
		"postion"		"bottom" // position in menu
	}
	"CTBan" // unique ID
	{
		"title"			"CT Ban" // title show in menu
		"command"		"sm_ctban" // command to execute
		"role"			"1,2,3,4,5" // 1 = warden, 2 = deputy, 3 = guard, 4 = prisoner, 5 = spec
		"flags"			"a,b,g" // flags for admins/vip
		"postion"		"bottom" // position in menu
	}
}

Menu Structure


Warden Menu (picture not uptodate)

WardenMenu

sturcture maybe not uptodate

  • Weapon Menu
  • Open Cells
  • Close Cells
  • Set deputy
  • Orders
  • Countdown
    • Beginn a Start Countdown
    • Beginn a Stop Countdown
    • Set a Start/Stop Countdown * 15 seconds * 30 seconds * 45 seconds * 1 Minute * 1 Minute 30 seconds * 2 Minutes * 3 Minutes * 5 Minutes
  • Count nearby prisoner
  • Give player freeday
  • Mark/Unmark rebel
  • TeamGames Menu (if installed)
  • TeamGames Games (if installed)
  • Math Quiz
  • Start Event Day Voting
  • Set a Event Days
    • War
    • FFA
    • Zombie
    • Hide
    • Catch & Freeze
    • Ghosts War
    • Suicide Bomber
    • HEbattle
    • NoScope
    • DuckHunt
    • Drunken
    • Zeus
    • Knifefight
    • TorchRelay
    • Cowboy
    • Freeday
  • Toggle Bullet sparks
  • Painter Menu
    • Enable Painter for terrors
    • Disable Painter
    • Rainbow
    • White
    • Red
    • Green
    • Blue
    • Yellow
    • Cyan
    • Magenta
    • Orange
  • Laser Pointer Menu
    • Rainbow
    • White
    • Red
    • Green
    • Blue
    • Yellow
    • Cyan
    • Magenta
    • Orange
  • Extend round time
  • Mute Menu
    • Mute a Terrorists
    • Unute a Terrorists
  • Checkplayer
  • Toggle Friendly Fire
  • Toggle No Block
  • Kill a random Player
    • Are you sure? * Yes * No
  • Leave warden
  • Rules

DeputyMenu

  • Weapon Menu
  • Open Cells
  • Close Cells
  • Orders
  • Countdown
    • Beginn a Start Countdown
    • Beginn a Stop Countdown
    • Set a Start/Stop Countdown * 15 seconds * 30 seconds * 45 seconds * 1 Minute * 1 Minute 30 seconds * 2 Minutes * 3 Minutes * 5 Minutes
  • Count nearby prisoner
  • Give player freeday
  • Mark/Unmark rebel
  • TeamGames Menu (if installed)
  • TeamGames Games (if installed)
  • Math Quiz
  • Toggle Bullet sparks
  • Painter Menu
    • Enable Painter for terrors
    • Disable Painter
    • Rainbow
    • White
    • Red
    • Green
    • Blue
    • Yellow
    • Cyan
    • Magenta
    • Orange
  • Laser Pointer Menu
    • Rainbow
    • White
    • Red
    • Green
    • Blue
    • Yellow
    • Cyan
    • Magenta
    • Orange
  • Extend round time
  • Mute Menu
    • Mute a Terrorists
    • Unute a Terrorists
  • Checkplayer
  • Toggle Friendly Fire
  • Toggle No Block
  • Kill a random Player
    • Are you sure? * Yes * No
  • Leave deputy
  • Rules

Counter-Terrorists Menu

  • Weapon Menu
  • Become warden
  • Vote for Event Days
    • War
    • FFA
    • Zombie
    • Hide
    • Catch & Freeze
    • Ghosts War
    • Suicide Bomber
    • HEbattle
    • NoScope
    • DuckHunt
    • Drunken
    • Zeus
    • Knifefight
    • TorchRelay
    • Cowboy
    • Freeday
  • Checkplayer
  • Join Terrorists
    • Are you sure? * Yes * No
  • Rules

Terrorists Menu

  • Weapon Menu
  • Request Menu
    • Report Freekill
    • Repeat announcement
    • Refuse a game
    • Request Healing
    • Capitulation
  • Vote against warden
  • Vote for Event Days
    • War
    • FFA
    • Zombie
    • Hide
    • Catch & Freeze
    • Ghosts War
    • Suicide Bomber
    • HEbattle
    • NoScope
    • DuckHunt
    • Drunken
    • Zeus
    • Knifefight
    • TorchRelay
    • Cowboy
    • Freeday
  • Join CT queue (!guard) or
  • Join Counter-Terrorists
    • Are you sure? * Yes * No
  • Rules

Additionally for Admins

  • Start Event Day Voting
  • Set a Event Days
    • War
    • FFA
    • Zombie
    • Hide
    • Catch & Freeze
    • Ghosts War
    • Suicide Bomber
    • HEbattle
    • NoScope
    • DuckHunt
    • Drunken
    • Zeus
    • Knifefight
    • TorchRelay
    • Cowboy
    • Freeday
  • Remove warden
  • Set new warden
    • Choose Player * sure kick old warden? * Yes * No
  • Admin menu

Files

/addons/sourcemod/plugins/MyJailbreak/menu.smx
/addons/sourcemod/scripting/MyJailbreak/menu.sp
/addons/sourcemod/plugins/MyJailbreak/disabled/menu_custom.smx /addons/sourcemod/scripting/MyJailbreak/Add-ons/menu_custom.sp /addons/sourcemod/configs/MyJailbreak/menu_custom.cfg
/addons/sourcemod/translation/MyJailbreak.Menu.phrases.txt

Clone this wiki locally