amxmodx/plugins
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
..
BinLogReader Update copyright year 2015-03-29 20:01:25 +02:00
cstrike Overhaul Restrict Weapons plugin - part 1 (#347) 2017-08-05 10:45:29 +02:00
dod Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
esf Added Corona Byte's EvolutionX core 2005-08-24 06:13:55 +00:00
include Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
lang Overhaul Restrict Weapons plugin - part 1 (#347) 2017-08-05 10:45:29 +02:00
ns Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
testsuite Improve UTF-8 support in some natives (bug 6475) (#407) 2017-08-05 10:32:16 +02:00
tfc Remove support for %name% replacement in plmenu (bug 6578). 2017-01-21 22:58:03 -05:00
ts Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
admin.sma AutoExecConfig: Remove config code in admin.sma 2015-08-14 16:38:28 +02:00
adminchat.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
admincmd.sma Fix temporary ban flags, add lang keys (#440) 2017-05-27 21:47:24 +02:00
adminhelp.sma Add amx_searchcmd command in adminhelp plugin and do some clean up (#415) 2017-08-01 22:56:21 +02:00
adminslots.sma Add client_remove() forward and fix a bug with client not internally disconnected (#414) 2017-02-25 11:50:52 +01:00
adminvote.sma Quote custom vote winning value (bug 6578). 2017-01-21 22:57:37 -05:00
AMBuilder Compiler: Treat pawn warnings as errors when building 2014-09-29 15:55:16 +02:00
antiflood.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
cmdmenu.sma Update cmdmenu.sma 2015-05-17 19:50:42 +03:00
compile.exe Fixed error output on compiler 2005-07-30 00:31:42 +00:00
compile.sh Fix compile.sh script for OS X. 2014-05-18 20:37:44 -05:00
imessage.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapchooser.sma fix memory leaks 2015-07-11 00:39:34 +03:00
mapsmenu.sma fix memory leaks 2015-07-11 00:39:34 +03:00
menufront.sma Update menufront.sma 2015-02-23 02:21:20 +05:00
multilingual.sma Fix player not being internally disconnected in some situation + add client_disconnected forward 2015-08-14 00:08:50 +02:00
nextmap.sma Rename change_level to engine_changelevel 2015-01-23 16:55:16 +01:00
pausecfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
plmenu.sma Replace s/get_pdata* with s/get_ent_data* in plmenu.sma (#424) 2017-03-11 14:58:10 +01:00
pluginmenu.sma Normalize all the line endings 2015-03-10 16:51:45 +01:00
scrollmsg.sma Update license headers for plugins and includes. 2014-08-04 13:18:41 -05:00
statscfg.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00
telemenu.sma MAX_PLAYERS: Fix moar 2015-02-01 21:45:16 +01:00
timeleft.sma MAX_PLAYERS: Fix plugins 2015-02-01 19:25:36 +01:00