Easy Web Shortcuts (V1.11)
Web Shortcuts with chat triggers and commands
Web Shortcuts with chat triggers and commands
A web shortcuts plugin for CSGO.
Supports multiple chat triggers and commands per URL.
sm_web <target> <url> - Open URL for a specific target (generic admins)
sm_ews_reload - Reload Web Shortcuts (root admin)
Download and setup VGUI URL Cache Buster (https://forums.alliedmods.net/showthread.php?t=302530) on your server
Compile easywebshortcuts.sp
Copy easywebshortcuts.smx to your server.
Copy easywebshortcuts.txt to /addons/sourcemod/configs/
Edit easywebshortcuts.txt with shortcuts you want (instructions inside the file)
Reload the plugin, change the map or use sm_ews_reload as a root admin to update changes
Code: Select all
// Easy Web Shortcuts
// Configuration File
//
// Enter your shortcuts in this file. One per line.
// Empty lines or lines begging with '//' are ignored
//
// Format: "triggers" "commands" "dimensions" "url"
//
// dimensions must either be "full" (for client max screen size), "hidden" (invisible window) or in "widthxheight" format (i.e. 1280x720)
// url should start with "http://", "https://" or be the exact string "about:blank"
//Triggers only (1280x720 resolution)
"!vip" "" "1280x720" "http://www.example.com/vip"
//Commands Only (full resolution)
"" "sm_wikipedia" "full" "http://www.wikipedia.org"
//Multiple triggers and commands
"!forums|!website|!home" "sm_forums|sm_website|sm_home" "full" "http://www.example.com"
//Play Hidden video in background
"!funnyvideo" "" "hidden" "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
//Stop playing hidden video in background
"!stop" "" "hidden" "about:blank"
//Using string replacements
"!gametracker" "" "full" "https://www.gametracker.com/server_info/{SERVERIP}:{SERVERPORT}}/"
"!serverswiththismap" "" "full" "https://www.gametracker.com/search/csgo/?search_by=map&query={MAPNAME}"
"!mysteamprofile" "" "full" "http://steamcommunity.com/profiles/{STEAMID64}"
The following strings are replaced if they appear in the URLs specified in easywebshortcuts.txt:
{SERVERIP} - Server IP Adress
{SERVERPORT} - Server Port
{NAME} - Client In-Game Name
{USERID} - Client User ID
{STEAMID} - Client Steam ID
{STEAMID64} - Client Steam ID 64 (community id)
{IP} - Client IP Address
{MAPNAME} - The map name
{MAPDISPLAYNAME} - Map name after last '/' (without workshop prefix etc)
Need more replacements?
Request some!
Zip archive