Skip to content

Request

thomas edited this page May 23, 2018 · 15 revisions

Allow terrorists to start a request.

  • Refuse a Game - Warden can "open the refusing" and T can refuse a game and get colored & the warden get a listing of all refuser.
  • Request Capitulation/Pardon - T get strip weapons and the warden got Menu to accept this request.
  • Request healing - T get colored and warden gets Menu to accept this request (give Healthshot).
  • Repeat - T can request a repeat of last call & the warden get a listing of all requester.
  • Freekill - a dead terror can report a Freekill. A random admins get the choice of
    • Respawn the victim
      • Respawn on Death Place
      • Respawn in a Cell
      • Respawn in Front of the Warden
    • Kill the freekiller
    • Set freeday next round
    • Swap the freekiller to terrorist. If there is no admin the warden get the report.
  • The CT can give a reason for a T kill.
  • Warden can give a personal Freeday a single player for next nonevent round.

Commands

sm_request - Open the request menu
sm_refuse - Allows the warden start refusing time and Terrorist to refuse a game
sm_capitulation - Allows a rebeling terrorist to request a capitulate
sm_pardon - Allows a rebeling terrorist to request a capitulate
sm_heal - Allows a Terrorist request healing
sm_repeat - Allows a Terrorist request repeating last call
sm_freekill - Allows a Terrorist report a freekill
sm_givefreeday - Allows the Warden to give a freeday to a player
 
set your own custom command. take a look at "sm_refuse_cmd" "sm_repeat_cmd" "sm_heal_cmd" "sm_capitulation_cmd"

ConVars

// 0 - disabled, 1 - enable Request Plugin
// -
// Default: "1"
sm_request_enable "1"

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

// 0 - disabled, 1 - enable sounds 
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_request_sounds_enable "1"

// Set your custom chat command for requestmenu (!request (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "req, requestmenu"
sm_request_cmds "req, requestmenu"

// 0 - disabled, 1 - enable Refuse
// -
// Default: "1"
sm_refuse_enable "1"

// Set your custom chat commands for Refuse(!refuse (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "ref, r"
sm_refuse_cmds "ref, r"

// 0 - disabled, 1 - Warden must allow !refuse before T can use it
// -
// Default: "0"
sm_refuse_allow "0"

// Сount how many times you can use the command
// -
// Default: "1"
sm_refuse_limit "1"

// Time the player gets to refuse after warden open refuse with !refuse / colortime
// -
// Default: "5.0"
sm_refuse_time "5.0"

// What color to turn the refusing Terror into (set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_refuse_color_red "0"

// What color to turn the refusing Terror into (rGb): x - green value
// -
// Default: "250"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_refuse_color_green "250"

// What color to turn the refusing Terror into (rgB): x - blue value
// -
// Default: "250"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_refuse_color_blue "250"

// Path to the soundfile which should be played for a refusing.
// -
// Default: "music/MyJailbreak/refuse.mp3"
sm_refuse_sound "music/MyJailbreak/refuse.mp3"

// Path to the soundfile which should be played after a refusing.
// -
// Default: "music/MyJailbreak/stop.mp3"
sm_refuse_stop_sound "music/MyJailbreak/stop.mp3"

// Set flag for admin/vip to get one more refuse. No flag = feature is available for all players!
// -
// Default: "a"
sm_refuse_flag "a"

// 0 - disabled, 1 - enable repeat
// -
// Default: "1"
sm_repeat_enable "1"

// Set your custom chat command for Repeat.(!repeat (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "what, rep, again"
sm_repeat_cmds "what, rep, again"

// Сount how many times you can use the command
// -
// Default: "2"
sm_repeat_limit "2"

// Path to the soundfile which should be played for a repeat.
// -
// Default: "music/MyJailbreak/repeat.mp3"
sm_repeat_sound "music/MyJailbreak/repeat.mp3"

// Set flag for admin/vip to get one more repeat. No flag = feature is available for all players!
// -
// Default: "a"
sm_repeat_flag "a"

// 0 - disabled, 1 - enable heal
// -
// Default: "1"
sm_heal_enable "1"

// Set your custom chat command for Heal(!heal (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "cure, h, ouch"
sm_heal_cmds "cure, h, ouch"

// 0 - disabled, 1 - enable give healthshot on accept to terror
// -
// Default: "1"
sm_heal_healthshot "1"

// 0 - disabled, 1 - enable check if player is already full health
// -
// Default: "1"
sm_heal_check "1"

// Сount how many times you can use the command
// -
// Default: "2"
sm_heal_limit "2"

// Time after the player gets his normal colors back
// -
// Default: "10.0"
sm_heal_time "10.0"

// What color to turn the heal Terror into (set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "240"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_heal_color_red "240"

// What color to turn the heal Terror into (rGb): x - green value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_heal_color_green "0"

// What color to turn the heal Terror into (rgB): x - blue value
// -
// Default: "100"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_heal_color_blue "100"

// Set flag for admin/vip to get one more heal. No flag = feature is available for all players!
// -
// Default: "a"
sm_heal_flag "a"

// 0 - disabled, 1 - enable Capitulation
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_capitulation_enable "1"

// Set your custom chat commands for Capitulation(!capitulation (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands)
// -
// Default: "sur, surrender, capi, capitulate, pardon, p"
sm_capitulation_cmds "sur, surrender, capi, capitulate, pardon, p"

// Time to decide to accept the capitulation
// -
// Default: "10.0"
sm_capitulation_timer "10.0"

// Time to give a rebel on not accepted capitulation his knife back
// -
// Default: "10.0"
sm_capitulation_rebel_timer "10.0"

// 0 - disabled, 1 - the warden have to accept capitulation on menu popup
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_capitulation_accept "1"

// 0 - disabled, 1 - enable Terror make no damage after capitulation
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_capitulation_damage "1"

// 0 - disabled, 1 - enable Terror can not pick up weapons after capitulation
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_capitulation_weapons "1"

// What color to turn the capitulation Terror into (set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_capitulation_color_red "0"

// What color to turn the capitulation Terror into (rGb): x - green value
// -
// Default: "250"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_capitulation_color_green "250"

// What color to turn the capitulation Terror into (rgB): x - blue value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_capitulation_color_blue "0"

// Path to the soundfile which should be played for a capitulation.
// -
// Default: "music/MyJailbreak/capitulation.mp3"
sm_capitulation_sound "music/MyJailbreak/capitulation.mp3"

// 0 - disabled, 1 - enable freekill report
// -
// Default: "1"
sm_freekill_enable "1"

// Set your custom chat commands for freekill(!freekill (no 'sm_'/'!')(seperate with comma ', ')(max. 12 commands))
// -
// Default: "fk, reportfk, rfk"
sm_freekill_cmds "fk, reportfk, rfk"

// Сount how many times you can report a freekill
// -
// Default: "2"
sm_freekill_limit "2"

// 0 - disabled, 1 - Allow the warden to respawn a Freekill victim
// -
// Default: "1"
sm_freekill_respawn "1"

// 0 - cells are still open, 1 - cells will close on respawn in cell - need smartjaildoors
// -
// Default: "1"
sm_freekill_respawn_cell "1"

// 0 - disabled, 1 - Allow the warden to Kill a Freekiller
// -
// Default: "1"
sm_freekill_kill "1"

// 0 - disabled, 1 - Allow the warden to set a freeday next round as pardon for all player
// -
// Default: "1"
sm_freekill_freeday "1"

// 0 - disabled, 1 - Allow the warden to set a personal freeday next round as pardon for the victim
// -
// Default: "1"
sm_freekill_freeday_victim "1"

// 0 - disabled, 1 - Allow the warden to swap a freekiller to terrorist
// -
// Default: "1"
sm_freekill_swap "1"

// 0 - disabled, 1 - Report will be send to admins - if there is no admin its send to warden
// -
// Default: "1"
sm_freekill_admin "1"

// 0 - disabled, 1 - Report will be send to admins even if he is in spec
// -
// Default: "1"
sm_freekill_admin_spec "1"

// Set flag for admin/vip get reported freekills to decide.
// -
// Default: "g"
sm_freekill_flag "g"

// 0 - disabled, 1 - Report will be send to Warden if there is no admin
// -
// Default: "1"
sm_freekill_warden "1"

// 0 - disabled, 1 - enable - CT can answer a menu with the kill reason
// -
// Default: "1"
sm_killreason_enable "1"

Files

/addons/sourcemod/plugins/MyJailbreak/request.smx
/addons/sourcemod/scripting/MyJailbreak/request.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/capitulation.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/freeday.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/freekill.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/heal.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/killreason.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/refuse.sp
/addons/sourcemod/scripting/MyJailbreak/Modules/Request/repeat.sp
/addons/sourcemod/translations/MyJailbreak.Request.phrases.txt