[ANY] Command Shortcuts
4 Attachment(s)
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:
Console Variables: Config file is located in: cfg/sourcemod/sm_commandshortcuts.cfg
Commands:
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
|
Re: [ANY] Command Shortcuts
Nicely done!
|
Re: [ANY] Command Shortcuts
Quote:
any suggestion & feature request will be welcomed. |
Re: [ANY] Command Shortcuts
these shortcuts can be executed in chat or console or can they be in both?
I would like it to be possible in both |
Re: [ANY] Command Shortcuts
Quote:
|
Re: [ANY] Command Shortcuts
updated!
new version 1.1 Added option to register shortcuts as a console command. Requested by Tonblader see main post to download the latest version. |
Re: [ANY] Command Shortcuts
Quote:
Similar to this: https://wiki.alliedmods.net/Commands...#Chat_Triggers |
Re: [ANY] Command Shortcuts
Quote:
no. you can register the command however you want. but even if you just register command as "fly" you need to use those chat triggers(!fly / /fly) to use it in chat. in console you can just type fly. |
Re: [ANY] Command Shortcuts
Beat me to it, nicely done! :)
|
Re: [ANY] Command Shortcuts
thank you for your precious comment :)
|
All times are GMT -4. The time now is 08:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.