Description
Simple plugin that hook on player press walking key and showing quick menu to them. Since I store all config stuff in enum struct, I set the maximum to 32 choice. if you want to add or reduce the number, you probably need to edit the .sp by yourself. You might see a lot of server has their own !shortcuts plugins. I have re-thought about post this plugin a lot because I know that somebody has done before, but I couldn't find where they post it or maybe if they actually published it.
This plugin has Client Preference and Also Recommend, Support for Zombie:Reloaded plugin too btw. (Menu will not show up if player is Zombie.)
Enum Struct
PHP Code:
MenuCommand g_Menu[32]; // Maximum 32 choice
MenuCommand g_Menu[10]; // Maximum 10 choice
Command
sm_shortcut, sm_shortcuts, sm_sc = Toggle Quick Command.
sm_reloadsc = Reload Config Command.
Configuration
Code:
"quickmenu"
{
"title"
{
"text" "[!sc] Quick Shortcuts Menu" // Menu title
}
"0"
{
"display" "!p90 | Buy P90 Command" // Menu Choice to Display
"command" "sm_p90" // Command To execute after the choice has been chosen.
}
"1"
{
"display" "!bizon | Buy PP-Bizon Command"
"command" "sm_bizon"
}
"2"
{
"display" "!kevlar | Buy Armor Kevlar Command"
"command" "sm_kevlar"
}
"3"
{
"display" "!he | Buy HeGrenade Command"
"command" "sm_he"
}
"4"
{
"display" "!mol | Buy Molotov Command"
"command" "sm_mol"
}
"5"
{
"display" "!ex | Exchange Cash to Credit Command"
"command" "sm_exchange"
}
}
Github :
https://github.com/oylsister/QuickShortcut-Menu/