Commit Graph

33 Commits

Author SHA1 Message Date
Vincent Herbet
6d6a41b894
Improve AdminSlot plugin (#631)
* Adminslot: Trim spaces

* Adminslot: Use semicolon everywhere

* Adminslot: Use brackets everywhere

* Adminslot: Hook cvars change and make sure max visible players is set right away

* Adminslot: Rename g_sv_visiblemaxplayers

* Adminslot: Move free slot calculation in its own function

* Adminslot: Use create_cvar and define appropriate bounds

* Adminslot: Use get_playersnum_ex with flag for clarity

* Adminslot: Move all the logic inside setVisibleSlots

Looks like the commit should have been split for clarity.

The initial purpose is to avoid code duplication and regroup checks.
The logic is the same with a little improvement to handle situations where a cvar is changed on-the-fly and sv_visiblemaxplayers needs to be reset.

Ultimately, the logic is the following:

 - At player's connection:
 -- Do nothing if amx_reservation == 0 and sv_visiblemaxplayers <= 0. If sv_visiblemaxplayers is set, we reset it directly.
 -- Check if player needs to be kicked. If not, and amx_hideslots == 0, then do nothing.
 -- Otherwise we update sv_visiblemaxplayers

 - Others events:
 -- Do nothing if either amx_reservation == 0 or amx_hideslots == 0, and if sv_visiblemaxplayers <= 0. If sv_visiblemaxplayers is set, we reset it directly.
 -- Otherwise we update sv_visiblemaxplayers

* Adminslot: Rename variables and adjust constantness

* Adminslot: Add a description to the cvars

* Adjust CVAR_HIDESLOTS english sentence

* Add the Deutsch translations
2020-06-03 23:52:47 +02:00
Eren Kaya
b60f58ac34
Turkish Translation Fixes/Addings (#862)
* Update admin.txt

Fixed translation [tr]

* Update adminchat.txt

* Update admincmd.txt

* Update adminhelp.txt

* Update adminslots.txt

* Update adminvote.txt

* Update antiflood.txt

* Update cmdmenu.txt

* Update common.txt

* Update imessage.txt

* Update mapchooser.txt

* Update menufront.txt

* Update mapsmenu.txt

* Update miscstats.txt

* Update multilingual.txt

* Update nextmap.txt

* Update pausecfg.txt

* Update plmenu.txt

* Update restmenu.txt

* Update scrollmsg.txt

* Update stats_dod.txt

* Update statscfg.txt

* Update telemenu.txt

* Update time.txt

* Update timeleft.txt

* Update statsx.txt

* Update adminhelp.txt

* Update admincmd.txt
2020-05-29 00:51:14 +02:00
Smilex_Gamer
aa06e5ab93 European Portuguese Language translation support (#750)
* Added European Portuguese translation: admin.txt

* Added European Portuguese translation: adminchat.txt

* Added European Portuguese translation: admincmd.txt

* Added European Portuguese translation: adminhelp.txt

* Added European Portuguese translation: adminslots.txt

* Added European Portuguese translation: adminvote.txt

* Added European Portuguese translation: antiflood.txt

* Added European Portuguese translation: cmdmenu.txt

* Added European Portuguese translation: common.txt

* Added European Portuguese translation: imessage.txt

* Added European Portuguese translation: languages.txt

* Added European Portuguese translation: mapchooser.txt

* Added European Portuguese translation: mapsmenu.txt

* Added European Portuguese translation: menufront.txt

* Added European Portuguese translation: miscstats.txt

* Added European Portuguese translation: multilingual.txt

* Added European Portuguese translation: nextmap.txt

* Added European Portuguese translation: pausecfg.txt

* Added European Portuguese translation: plmenu.txt

* Added European Portuguese translation: restmenu.txt

* Added European Portuguese translation: scrollmsg.txt

* Added European Portuguese translation: stats_dod.txt

* Added European Portuguese translation: statscfg.txt

* Added European Portuguese translation: statsx.txt

* Added European Portuguese translation: telemenu.txt

* Added European Portuguese translation: time.txt

* Added European Portuguese translation: timeleft.txt
2019-10-17 15:46:04 +02:00
Pjeter Jetishi
0928d7a6fe
Update adminslots.txt
Some changes in file
2019-05-23 19:07:45 +02:00
Relaxing
62052ee590
Added Albanian language: adminslots.txt 2019-05-12 14:29:29 +04:00
Relaxing
97fc80dd03
Merge branch 'master' into master 2019-04-14 10:12:59 +02:00
Relaxing
8940de5956
Added Albanian translation 2019-04-14 09:38:58 +02:00
regener
fc337d12a4 Hungarian language update (#474)
The important parts have been updated* and the missing parts added according to my best knowledge.

*admincmd.txr was UTF8 instead of UTF8 without BOM, I'm not sure it was a mistake or not.
2018-07-10 12:10:25 +02:00
OciXCrom
528fec1a29 Macedonian & Bulgarian translation fix (#477)
* Macedonian & Bulgarian translations fix

* Macedonian & Bulgarian translations fix
2018-07-10 12:02:47 +02:00
Vincent Herbet
e8acb93b99 Merge pull request #75 from LittleKu/patch-1
Add chinese language
2014-09-04 23:25:11 +02:00
xPaw
d65cedf8c7 Remove leet speak 2014-07-27 13:03:23 +03:00
LittleKu
178516ac17 Update adminslots.txt 2014-07-21 20:59:41 +08:00
Danil
9197fd38b1 Update adminslot.txt … …
Add Russian language ...
2014-07-15 14:16:43 +06:00
Vincent HERBET
139d68700b Add Bosnian language (bug 4528, r=me)
Former-commit-id: df7c045089fdc6d73fe85728d1ea15c9e23488f9
2013-06-21 00:30:34 +02:00
Vincent HERBET
4cfa4fa1ca Add Croatian language (bug 4772, r=me)
Former-commit-id: 9624a8022d31d81041d9ceec920a9c34d39b7089
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
27c2978617 Synced language translation files 2005-07-07 18:38:29 +00:00
David Anderson
cb94cccf22 Added Dutch language 2004-11-08 12:35:52 +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
David Anderson
1822261046 sanaell's frenchie changes 2004-09-03 08:01:28 +00:00
Felix Geyer
a0562ce437 added Portuguese 2004-08-22 15:58:50 +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
403f22340f Initial import 2004-08-03 20:09:32 +00:00