AMX Mod X - Half-Life 1 Scripting and Administration
Go to file
Vincent Herbet 8e7eb94e50 Overhaul Restrict Weapons plugin - part 1 (#347)
* Restmenu: Use CS_OnBuyAttempt forward to detect any buy attempt - part 1

- Removed any useless code which won't be needed anymore with forward. A lot!

* Restmenu: Use CS_OnBuyAttempt forward to detect any buy attempt - part 2

- Added the actual forward
- Because of forward passing a CSI_* constant, it's needed to refactor how is saved a blocked item. Not fully implemented everywhere because menu is going to be refactored later as well.

* Restmenu: Replace findAliasId() by cs_get_item_id()

* Restmenu: Use cvar pointers

* Restmenu: Refactor menu - part 1

Purpose:
  - Convert old menus to new menus.
  - Instead of having one menu with several pages, having one main menu (item types) and sub-menus (items list). More readable, more easy to naviguate and no pagination.
  - Move hardcoded strings to ML

* Restmenu: Refactor menu - part 2

Purpose:
  - Convert old menus to new menus.
  - Instead of having one menu with several pages, having one main menu (item types) and sub-menus (items list). More readable, more easy to naviguate and no pagination.
  - Move hardcoded strings to ML
  - Minor visual improvements

* Restmenu: Refactor podbot stuff

- Factorized code
- Used a more direct way to set restrictions

* Restmenu: Refactor load/save config file

- Used new file natives
- Moved harcoded message header to ML
- QoL: saved restricted items will be grouped per type
- Cleaned up few things

* Restmenu: Refactor amx_restrict command

- Minor improvements on how are retrieved/handled arguments from command.
- Same as menu, it displays first classes list, then it lists associated items. No more pagination.
- Minor visual changes.

* Restmenu: Remove unused stuffs

* Restmenu: Move more harcoded messages to ML

* Restmenu: Move MAPSETTINGS define to cvar

- Don't forget me in changelog
- There is room for improvements but for now keep the same behavior

* Restmenu: Add some consistency, no code change

- Renamed some variables
- Changed functions order
- Removed extra spaces
- Fixed leading tabs

* Restmenu: Use inline formatting at various places

* Restmenu: Make command descriptions multilingual for player

* Restmenu: Refresh opened menus if the command is used to save/load/set.

Also, I've removed the renaming of "exit" item because it was misleading as it returns MENU_EXIT when it's named with "back" and handling the action wiht that doesn't make much sense.

* Restmenu: Adjust minor things (consistency, readability, safety)

* Restmenu: Show the current category when items are listed through the command

* Restmenu: Display admin activity on loading/saving

+ load: reset blocked items only if file has been loaded
+ load: ignored if no arguments
+ save: added a silly fix because of the cvars
2017-08-05 10:45:29 +02:00
amxmodx Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
compiler Fix inc/dec operators not returning an iEXPRESSION (#429) 2017-04-29 23:33:09 +02:00
configs Overhaul Restrict Weapons plugin - part 1 (#347) 2017-08-05 10:45:29 +02:00
editor/studio Add elog_message native (#451) 2017-08-01 15:14:53 +02:00
gamedata Cstrike: Get offset for m_bMapHasBombTarget (#443) 2017-06-21 10:07:26 +02:00
installer Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
modules Fix broken cs_set_user_model update_index parameter for the default engine (#450) 2017-07-29 17:01:34 +02:00
plugins Overhaul Restrict Weapons plugin - part 1 (#347) 2017-08-05 10:45:29 +02:00
public Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
support Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
third_party Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
tools Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
.gitattributes Add gitattributes 2015-03-10 11:11:49 +02:00
.gitignore Update to the latest AMTL (#381) 2016-08-12 15:30:06 +02:00
.gitmodules Use upstream AMTL as a submodule 2015-03-09 22:53:58 +01:00
.travis.yml Update TravisCI build to use Clang 3.7 2016-03-20 23:02:15 +01:00
AMBuildScript Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
appveyor.yml Fix AppVeyor 2015-03-09 23:12:27 +01:00
configure.py Tweak build scripts so the vs build frontend will work. 2014-08-02 12:29:53 -07:00
product.version Bump version to 1.8.3-dev. 2013-02-14 23:30:38 -08:00
pushbuild.txt Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
README.md 💇 2014-06-03 12:19:43 +03:00

AMX Mod X

AMX Mod X - Half-Life 1 Scripting and Server Administration

General

Development