Raised This Month: $51 Target: $400
 12% 

[CS:GO] Command Restrictor for Zephyrus Store


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Plugin ID:
7261
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Restric commands by setting them a price using Zephyrus Store credits
Old 08-17-2020 , 15:26   [CS:GO] Command Restrictor for Zephyrus Store
Reply With Quote #1

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 this:
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 costs to non whitelisted players is written.
	}
}
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

Versions:
➤ 1.0 - first release [17/08/2020]
Attached Files
File Type: zip store_command-restrictor.zip (22.6 KB, 148 views)
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:

Last edited by SSheriFF; 01-04-2021 at 11:54.
SSheriFF is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode