Commit Graph

36 Commits

Author SHA1 Message Date
Relaxing
09548bfd2c
Added Albanian translation 2019-04-14 09:59:16 +02:00
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
Vincent Herbet
e8acb93b99 Merge pull request #75 from LittleKu/patch-1
Add chinese language
2014-09-04 23:25:11 +02:00
LittleKu
8bd81ee883 Update restmenu.txt 2014-09-04 12:33:53 +08:00
xPaw
d65cedf8c7 Remove leet speak 2014-07-27 13:03:23 +03:00
xPaw
1262c197c4 Fix some translations. 2014-07-17 16:53:20 +02:00
Danil
a98df451cf Update restmenu.txt
fix [ru].
2014-07-17 18:33:27 +06:00
Danil
091a685d75 Update restmenu.txt
Add Russian language ...
2014-07-15 16:26:39 +06:00
xPaw
95c2e82543 Fix some languages 2014-06-05 12:02:29 +03:00
Vincent Herbet
389eee472f Update Portuguese translations (bug 3236, r=me)
Former-commit-id: 1e36ba07dc
2013-07-04 20:16:25 +02:00
Vincent Herbet
1000fdc902 Update Polish translations (bug 5570, r=me)
Former-commit-id: 1ded7ef669
2013-06-27 18:16:20 +02:00
Vincent HERBET
139d68700b Add Bosnian language (bug 4528, r=me)
Former-commit-id: df7c045089
2013-06-21 00:30:34 +02:00
Vincent HERBET
4cfa4fa1ca Add Croatian language (bug 4772, r=me)
Former-commit-id: 9624a8022d
2013-06-20 01:58:44 +02:00
David Anderson
21b8f905ae Added amb1762: Macedonian translation (thanks z3r0Lev3L). 2008-08-16 06:51:07 +00:00
David Anderson
36a15919ca Added amb1365: Slovak translation (thanks Centaury). 2008-08-16 06:40:49 +00:00
David Anderson
cb62613501 synced language files 2007-08-04 04:10:14 +00:00
Borja Ferrer
45b8383eb9 lang sync (added bulgarian and l33t) 2006-06-04 23:49:47 +00:00
Borja Ferrer
3b4cd21835 NL and SV fixes (Lt Llama) 2006-03-03 22:31:55 +00:00
David Anderson
0df187edcd merged lang stuff 2006-02-05 03:41:30 +00:00
David Anderson
f54d112bbb Language sync 2005-08-23 01:24:42 +00:00
David Anderson
94d3b31f40 Language sync for faluco :) 2005-07-27 16:32:39 +00:00
David Anderson
40f28a543e Resync 2005-07-07 20:08:35 +00:00
David Anderson
27c2978617 Synced language translation files 2005-07-07 18:38:29 +00:00
David Anderson
4b48be3e93 Synced language files 2005-01-30 04:53:11 +00:00
David Anderson
add716276b Synced language files (added Dutch, thanks Devilion) 2004-11-14 14:23:15 +00:00
David Anderson
301a69aacb Synced translation files 2004-10-07 08:31:48 +00:00
David Anderson
9042efd195 Synced 2004-09-19 15:22:50 +00:00
David Anderson
2d9ec5295d Synced translations 2004-09-16 22:43:51 +00:00
Felix Geyer
a0562ce437 added Portuguese 2004-08-22 15:58:50 +00:00
David Anderson
f1a6938441 dupe bugs 2004-08-22 04:47:03 +00:00
David Anderson
9b12979b05 More duplication bugs 2004-08-22 04:41:03 +00:00
Felix Geyer
2b87e6d585 many more fixes 2004-08-21 16:55:39 +00:00
Felix Geyer
b35214cce9 fixed many bugs 2004-08-20 20:53:19 +00:00
Felix Geyer
7799bde73d added 2 new languages | removed non English chars 2004-08-17 01:08:56 +00:00
Felix Geyer
310ad81849 Initial import of 8 languages 2004-08-13 14:58:43 +00:00
Felix Geyer
fbfb43b7d2 Initial import 2004-08-06 18:39:19 +00:00