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

RSS[ANY] Command Shortcuts


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
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


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.zip (10.4 KB)
File Type: smx sm_commandshortcuts.smx (7.4 KB)
File Type: sp 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

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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