Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[CSGO] Easy Web Shortcuts (V1.00, 04/11/2017)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Easy Web Shortcuts (V1.00)
Web Shortcuts using WebFix.
68747470733a2f2f692e696d6775722e636f6d2f
By Byte

? Description ?
A web shortcuts plugin for CSGO (very similar to other web shortcuts plugins) which uses WebFix.
This is an example plugin I made for WebFix (I literally made it in 15 minutes so it may have some bugs).

? Commands ?
sm_web <target> <url> - Open URL for a specific target (generic admins)
sm_ews_reload - Reload Web Shortcuts (root admin)

? Instructions ?
  1. Download and setup WebFix (https://forums.alliedmods.net/showthread.php?t=302597) on your server
  2. Compile easywebshortcuts.sp
  3. Copy easywebshortcuts.smx to your server.
  4. Copy easywebshortcuts.txt to /addons/sourcemod/configs/
  5. Edit easywebshortcuts.txt with shortcuts you want (instructions inside the file)
  6. Reload the plugin, change the map or use sm_ews_reload as a root admin to update changes

? Example easywebshortcuts.txt ?
HTML Code:

// Easy Web Shortcuts
// Configuration File
//
// Enter your shortcuts in this file. One per line.
// Empty lines or lines begging with '//' are ignored
//
// Format: "trigger" "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"

//Forum stuff
"!forums" "full" "http://www.myforumexample.com"
"!vip" "1280x720" "http://www.myforumexample.com/vip"

//Server
"!gametracker" "full" "http://www.gametracker.com/server_info/{SERVERIP}:{SERVERPORT}/"

//General
"!google" "full" "http://www.google.com"
"secret_command_haha" "full" "https://forums.alliedmods.net"
"!funnyvideo" "hidden" "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
"!stop" "hidden" "about:blank"

? URL Replacements ?
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

Need more replacements?
Request some!

? Changelog?
Code:

1.00 Initial release

Attached Files
File Type: zip EasyWebShortcuts_V1.00.zip (19.1 KB)

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...