AMX CVAR Guard

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

AMX CVAR Guard

Post by greenie »

AMX CVAR GUARD
by Wilson [29th ID]

DESCRIPTION
Executes commands listed in an ini file on every incoming client upon
their connection to the server, and optionally can prevent the client
from changing the command to anything else.

WARNING
If the "lock" option is enabled, so that clients cannot set the commands
to anything else, the client will have to exit their game before they
can set it to anything else. No permanent effects, but sometimes people
get confused.

NOTE
Blocking commands only works for client CVARs, which are "settings".
See cvarguard.ini for examples of these cvars.

USAGE
Place cvarguard.ini in amxmodx/configs directory.
Follow instructions in that file for adding commands.
Use the below CVARs to enable this plugin in your server.

amx_cvarguard <1/0>
Enables or Disables the plugin

amx_cvarguard_lock <1/0>
Enables or Disables the "lock" feature, preventing clients from
changing commands to anything else

NOTE: This is not another "looping client_cmd" plugin. This uses a way to redefine client cvars so that the setting they control cannot be changed.

.zip
plugin
source
Post Reply

Return to “General Purpose”