RSSy MYGO.pl Opublikowano Marzec 22, 2021 o 00:21 RSSy Udostępnij Opublikowano Marzec 22, 2021 o 00:21 Command Shortcuts Description: Allows players/admins to execute server/client commands via shortcuts. There is a plugin does almost the same by Arkarr but it is outdated. Some people asked for an update so i rewrited a new one. Version: 1.0 - First release. Features:Any keyword can be a shortcut to an existing command. Allows client commands to execute via shortcuts. Shortcuts can be specified for admin flag. Console Variables: Config file is located in: cfg/sourcemod/sm_commandshortcuts.cfg sm_commandshortcuts_notification - Display a message when a command shortcut triggered. 1 = Enabled, 0 = Disabled sm_commandshortcuts_publicinfo - Allow all clients to lookup command shortcuts info by typing !commandshortcuts. 1 = All Clients, 0 = Only Admins(who have access to ban) Commands:sm_reloadshortcuts - Reloads the config file. sm_commandshortcuts - Gives info about command shortcuts. Configuration "shortcut" - Trigger to execute the command. "flag" - Needed flag to use trigger. Leaving it empty means no permission required. "command" - Command to execute when shortcut triggered. {player} can be used to target the client who triggered the shortcut. It's the same as @me. "type" - Type of command. Set 1 if if the command needed to be executed by console, or set 2 to execute by client. The section names(1, 2, 3) is not important but must be unique. Example: Spoiler PHP Code: "commandshortcuts" { "1" { "shortcut" "!restartgame" "flag" "d" "command" "mp_restartgame 5" "type" "1" } "2" { "shortcut" ".fly" "flag" "z" "command" "sm_noclip {player}" "type" "1" } "3" { "shortcut" "!shortcuts" "flag" "" "command" "sm_commandshortcuts" "type" "2" } } InstallationUpload commandshortcuts.cfg to addons/sourcemod/configs/ folder Upload sm_commandshortcuts.smx to addons/sourcemod/plugins folder Attached Files sm_commandshortcuts.zip (10.4 KB) sm_commandshortcuts.smx (7.4 KB) Get Plugin or Get Source (sm_commandshortcuts.sp - 4.7 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi