Raised This Month: $51 Target: $400
 12% 

[ANY] Command Shortcuts


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
stephen473
Senior Member
Join Date: Jan 2017
Location: somewhere on earth
Plugin ID:
7566
Plugin Version:
1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows players/admins to execute server/client commands via shortcuts
    Old 03-21-2021 , 20:21   [ANY] Command Shortcuts
    Reply With Quote #1

    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.

    1.1 - Added option to register shortcuts as a console command. Requested by Tonblader

    1.2 - Added option to use a specified STEAMID instead of admin flag. Requested by starcs

    1.3 - Added function to apply commands delayed in specificied second(s). Requested by
    Alessandro_k

    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.
    • Real commands can be triggered in delayed after shortcut has triggered.

    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. Instead of flag, a steamid can also be used. Only specified STEAMID will be able to use trigger. Leaving it completely 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 the command needed to be executed by console, or set 2 to execute by client.
    "registershortcut" Registers the shortcut if the option is 1. With that shortcut can be used on console. Set 0 if you want shortcut works only as a chat trigger.
    "delay" - Delay you want command to execute. Set to 0 if it's not needed.

    The section names(1, 2, 3) is not important but must be unique.

    See the example for full info.

    Example:
    Spoiler


    Installation
    • Upload commandshortcuts.cfg to addons/sourcemod/configs/ folder
    • Upload sm_commandshortcuts.smx to addons/sourcemod/plugins folder
    Attached Files
    File Type: zip sm_commandshortcuts_v1.2.zip (12.0 KB, 137 views)
    File Type: sp Get Plugin or Get Source (sm_commandshortcuts.sp - 87 views - 6.6 KB)
    File Type: smx sm_commandshortcuts.smx (9.0 KB, 57 views)
    File Type: zip sm_commandshortcuts_v1.3.zip (20.9 KB, 85 views)
    __________________
    Also known as Hardy`.

    Feel free to contact me if you have a private plugin request!

    My Steam Profile | Discord: Hardy`#3792

    Last edited by stephen473; 12-16-2022 at 15:14.
    stephen473 is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 13:01.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode