Initial import of dynamic menu code (amb1039)
--HG-- branch : sourcemod-1.1.0 extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/branches/sourcemod-1.1.0%401788
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/* Add group options to be added to 'group' or 'groupplayer' type submenus
|
||||
* The left side is the name that will show in the menu, right is the command that will be fired
|
||||
*/
|
||||
|
||||
Groups
|
||||
{
|
||||
"All" "@all"
|
||||
"Bots" "@bots"
|
||||
"Alive" "@alive"
|
||||
"Dead" "@dead"
|
||||
"Humans" "@humans"
|
||||
"Current aim" "@aim"
|
||||
|
||||
/* You can enable these if you are using Counter-Strike Source and running the cstrike extension */
|
||||
// "Terrorists" "@t"
|
||||
// "Counter-Terrorists" "@ct"
|
||||
|
||||
}
|
||||
@@ -0,0 +1,390 @@
|
||||
"Commands"
|
||||
{
|
||||
"title" "Choose a Category"
|
||||
"Fun Commands"
|
||||
{
|
||||
"admin" "sm_ban"
|
||||
"Set Player Speed"
|
||||
{
|
||||
"cmd" "sm_speed #1 #2"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Edit"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Speed Multiplier"
|
||||
"1" "1.0"
|
||||
"1." "Normal"
|
||||
"2" "0.8"
|
||||
"2." "80%"
|
||||
"3" "0.5"
|
||||
"3." "Half"
|
||||
"4" "1.5"
|
||||
"4." "50% Boost"
|
||||
"5" "2.0"
|
||||
"5." "Double"
|
||||
}
|
||||
|
||||
}
|
||||
"Give Player Weapon"
|
||||
{
|
||||
"cmd" "sm_weapon #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "player"
|
||||
"title" "Player to Give to"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Weapon:"
|
||||
"1" "weapon_ak47"
|
||||
"1." "Ak-47"
|
||||
"2" "weapon_m4a1"
|
||||
"2." "M4A1"
|
||||
"3" "weapon_deagle"
|
||||
"3." "Desert Eagle"
|
||||
"4" "weapon_mp5"
|
||||
"4." "MP5"
|
||||
}
|
||||
|
||||
}
|
||||
"Set Player Armour"
|
||||
{
|
||||
"cmd" "sm_armour #1 #2"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Edit"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Armour:"
|
||||
"1" "0"
|
||||
"2" "20"
|
||||
"3" "50"
|
||||
"4" "80"
|
||||
"5" "100"
|
||||
}
|
||||
|
||||
}
|
||||
"Set Player HP"
|
||||
{
|
||||
"cmd" "sm_hp #1 #2"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Edit"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "HP:"
|
||||
"1" "1"
|
||||
"2" "20"
|
||||
"3" "50"
|
||||
"4" "80"
|
||||
"5" "100"
|
||||
"6" "150"
|
||||
"7" "200"
|
||||
}
|
||||
|
||||
}
|
||||
"Bury Player"
|
||||
{
|
||||
"cmd" "sm_bury #1"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Bury"
|
||||
|
||||
}
|
||||
}
|
||||
"UnBury Player"
|
||||
{
|
||||
"cmd" "sm_unbury #1"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to UnBury"
|
||||
|
||||
}
|
||||
}
|
||||
"Respawn Player"
|
||||
{
|
||||
"cmd" "sm_respawn #1"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Respawn"
|
||||
|
||||
}
|
||||
}
|
||||
"Disarm Player"
|
||||
{
|
||||
"cmd" "sm_disarm #1"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Disarm"
|
||||
|
||||
}
|
||||
}
|
||||
"Burn and Disarm"
|
||||
{
|
||||
"cmd" "sm_burn #1 #2;sm_disarm #1"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Burn"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Time:"
|
||||
"1" "0"
|
||||
"2" "5"
|
||||
"3" "10"
|
||||
"4" "20"
|
||||
"5" "30"
|
||||
}
|
||||
|
||||
}
|
||||
"Set Player Gravity"
|
||||
{
|
||||
"cmd" "sm_gravity #1 #2"
|
||||
"execute" "player"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
"method" "name"
|
||||
"title" "Player/Team to Edit"
|
||||
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Speed Multiplier"
|
||||
"1" "1.0"
|
||||
"1." "Normal"
|
||||
"2" "0.8"
|
||||
"2." "80%"
|
||||
"3" "0.5"
|
||||
"3." "Half"
|
||||
"4" "1.5"
|
||||
"4." "50% Boost"
|
||||
"5" "0.25"
|
||||
"5." "Quarter"
|
||||
}
|
||||
|
||||
}
|
||||
"Set Player No-Clip"
|
||||
{
|
||||
"cmd" "sm_noclip #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"1" "1"
|
||||
"1." "On"
|
||||
"2" "0"
|
||||
"2." "Off"
|
||||
}
|
||||
}
|
||||
"Set Player God"
|
||||
{
|
||||
"cmd" "sm_god #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"1" "1"
|
||||
"1." "On"
|
||||
"2" "0"
|
||||
"2." "Off"
|
||||
}
|
||||
}
|
||||
"Set Player NightVision"
|
||||
{
|
||||
"cmd" "sm_nv #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"1" "1"
|
||||
"1." "Give"
|
||||
"2" "0"
|
||||
"2." "Take"
|
||||
}
|
||||
}
|
||||
"Set Player Helmet"
|
||||
{
|
||||
"cmd" "sm_helmet #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"1" "1"
|
||||
"1." "Give"
|
||||
"2" "0"
|
||||
"2." "Take"
|
||||
}
|
||||
}
|
||||
"Set Player Defuse Kit"
|
||||
{
|
||||
"cmd" "sm_defuser #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "teamplayer"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"1" "1"
|
||||
"1." "Give"
|
||||
"2" "0"
|
||||
"2." "Take"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
"ServerCommands"
|
||||
{
|
||||
"Extend Map"
|
||||
{
|
||||
"cmd" "sm_extend #1"
|
||||
"1"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Extend for:"
|
||||
"1" "5"
|
||||
"1." "5 Minutes"
|
||||
"2" "10"
|
||||
"2." "10 Minutes"
|
||||
"3" "15"
|
||||
"3." "15 Minutes"
|
||||
"4" "20"
|
||||
"4." "20 Minutes"
|
||||
"5" "30"
|
||||
"5." "Half an Hour"
|
||||
"6" "45"
|
||||
"6." "45 Minutes"
|
||||
"7" "60"
|
||||
"7." "An Hour"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
"Cvars"
|
||||
{
|
||||
"admin" "sm_kick"
|
||||
"Timelimit"
|
||||
{
|
||||
"cmd" "mp_timelimit #1"
|
||||
"execute" "server"
|
||||
"1"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Timelimit:"
|
||||
"1" "20"
|
||||
"2" "40"
|
||||
"3" "60"
|
||||
|
||||
}
|
||||
}
|
||||
"Friendly Fire"
|
||||
{
|
||||
"cmd" "mp_friendlyfire #1"
|
||||
"execute" "server"
|
||||
"1"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Friendly Fire:"
|
||||
"1" "1"
|
||||
"1." "On"
|
||||
"2" "0"
|
||||
"2." "Off"
|
||||
}
|
||||
}
|
||||
"Show Damage Done"
|
||||
{
|
||||
"cmd" "sm_showdamage #1"
|
||||
"admin" "sm_csay"
|
||||
"execute" "server"
|
||||
"1"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Show Damage Done:"
|
||||
"1" "1"
|
||||
"1." "On"
|
||||
"2" "0"
|
||||
"2." "Off"
|
||||
}
|
||||
}
|
||||
}
|
||||
"Team management"
|
||||
{
|
||||
"Team Player"
|
||||
{
|
||||
"cmd" "sm_team #1 #2"
|
||||
"1"
|
||||
{
|
||||
"type" "player"
|
||||
}
|
||||
"2"
|
||||
{
|
||||
"type" "list"
|
||||
"title" "Team:"
|
||||
"1" "1"
|
||||
"1." "Spectators"
|
||||
"2" "2"
|
||||
"2." "Terrorists"
|
||||
"3" "3"
|
||||
"3." "Counter-Terrorists"
|
||||
}
|
||||
}
|
||||
"Switch Team"
|
||||
{
|
||||
"cmd" "sm_teamswap"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user