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

[CS:GO] Command Restrictor for Zephyrus Store


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
Description:
➤ Restric commands by setting them a price using Zephyrus Store credits.
➤ The commands are set in a .txt file called "command_restrictor.txt" which can be found in the directory "addons/sourcemod/configs/command_restrictor.txt".
➤ The command_restrictor.txt file should look like that:
Code:

"Commands"
{
        "yourcommand" //Where the command written. For SoureMod commands make sure you write "sm_" before the command itself.
        {
                "credits"                "5" //Where the amount of credits the command cost to non whitelisted players.
        }
}

How to install:
➤ Install store_command-restrictor.zip
➤ Extract the folder into your server directory.
➤ Edit "command_restrictor.txt" file as you like.
Note: This is necessary only if the cvar "sm_enable_white_list" is enabled!
➤ Add a Database enrtry called "WhiteList" to your addons/sourcemod/configs/databases.cfg like the following example:
Code:

"WhiteList" //Don't Change this!
{
        "driver"        "mysql"
        "host"          "yourhost" //Change this
        "database"      "yourdatabase" //Change this
        "user"          "youruser" //Change this
        "pass"          "yourpassword" //Change this
        "port"            "3306"
}

➤ Restart your server.

Commands:
➤ sm_buywl | Opens the buy whitelist menu.
➤ sm_addwl | Adds a SteamID or an online client to the whitelist(Only for Root).
➤ sm_removewl | Removes a SteamID or an online client from the whitelist(Only for Root).
➤ sm_whitelist | Opens a menu with all the whitelisted SteamIDs(Only for Root).
➤ sm_addcm | Adds a new command to the command_restrictor.txt file(Only for Root).

Cvars:
➤ sm_admin_immunity | 1-Enable 0-Disable Admins(flag b) are added automatically to the whitelist.(default:1)
➤ sm_enable_white_list | 1-Enable 0-Disable The white list option which allows players to buy an unlimited use of all the restricted commands.(default:1)
➤ sm_white_list_price | The amount of credits the whitelist role costs.(default:1000)
➤ Changeable through cfg/sourcemod/CommandRestrictor.cfg

Download links:
Zephyrus Store

Contact:
My Discord: WilDick#1524
My Steam Profile

Versions:
➤ 1.0 - first release [17/08/2020]

Attached Files
File Type: zip store_command-restrictor.zip (22.6 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

×
×
  • Dodaj nową pozycję...