Command Restrictions

Command Restrictions v2.0

Нет прав для скачивания


  • Changed the way the plugin reads restrictions from the configuration file.
    • Instead of stopping the checks at the first "block" <status>, the plugin will keep reading until it reaches the last restriction for the command. This means restrictions are read 1 by 1, from top to bottom, meaning that those that are below have priority over the ones above them. For example, if you have a "block" condition in the first line and "allow" on the second - the "allow" condition will grant access to the command if the condition is true.
      Код:
      [amx_my_command]
      block all
      allow name "OciXCrom" // if this condition is true, the player will get access to the command
  • Added 2 new <status> types - "pass" and "stop".
    • Since conditions are read 1 by 1, if you use "pass" or "stop", the plugin will stop reading all remaining conditions if the given "pass" or "stop" condition is true. This means that the player will directly get access (pass) or be denied access (stop) from the command, ignoring all following conditions.
      Код:
      [amx_my_command]
      pass name "OciXCrom" // if this condition is true, the player will get access to the command and all conditions down below will be ignored
      block all
      allow team "ct"
      allow map "de_*"
      stop time "23:00-5:00" // if this condition is true, the player will be denied access to the command and all conditions down below will be ignored
      allow flags "mno"
  • Added a new restriction "anyflag" that allows you to target players who have AT LEAST ONE of the given flags, unlike "flags" that requires ALL of the given flags.
  • Added a new restriction "score" that allows you to target players who have reached a certain amount of score in the scoreboard (TAB).
  • Added support for OciXCrom's Rank System - you can now make commands available for players who have reached a certain level or amount of XP in the rank system. For that purpose, 2 new restriction types have been added - "level" and "xp". If you aren't using my rank system, you won't be able to use these restrictions. If you are using it, they will automatically become available for you to use in the configuration file.
  • Added support for CSStats. You can now make commands available for players who have reached a certain position in top15, etc. For that purpose, the following restriction types have been added:
    • rank - targets players based on their rank in CSStats (only available in Counter-Strike)
    • kills - targets players based on their number of kills in CSStats (only available in Counter-Strike)
    • deaths - targets players based on their number of deaths in CSStats (only available in Counter-Strike)
    • headshots - targets players based on their number of headshots in CSStats (only available in Counter-Strike)
  • Using the plugin in a game different than Counter-Strike no longer requires editing the .sma file. It's now automatic.
  • The styling of the configuration file has been completely changed in order to make it easier to read. I recommend updating it.


  • Added an option to make commands available only during specific maps, e.g. "de_dust2" or "de_*" for map prefixes.
Сверху Снизу