6d6a41b894
* 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
79 lines
2.2 KiB
Plaintext
Executable File
79 lines
2.2 KiB
Plaintext
Executable File
[en]
|
|
DROPPED_RES = Dropped due to slot reservation
|
|
CVAR_RESERVATION = Amount of slots to reserve
|
|
CVAR_HIDESLOTS = If you set this to 1, you can hide slots on your server.^nIf the server's public and hidden slots are full, you must manually connect with the "connect" console command.
|
|
|
|
[de]
|
|
DROPPED_RES = Sorry, dieser Slot ist reserviert
|
|
CVAR_RESERVATION = Anzahl der zu reservierenden Slots
|
|
CVAR_HIDESLOTS = Wenn diese CVAR auf 1 gesetzt wird, können Slots auf Ihrem Server ausgeblendet werden.^nWenn die öffentlichen Slots auf dem Server "voll" sind und weitere freie Slots ausgeblendet sind, müssen Sie die Verbindung manuell über den Konsolenbefehl "connect" herstellen.
|
|
|
|
[sr]
|
|
DROPPED_RES = Server je pun, nemate pristup rezervisanim mestima
|
|
|
|
[tr]
|
|
DROPPED_RES = Slot rezervasyonundan dolayi dusuruldun
|
|
|
|
[fr]
|
|
DROPPED_RES = Desole, un admin vient de prendre sa place reservee, tu as ete ejecte du serveur
|
|
|
|
[sv]
|
|
DROPPED_RES = Nerkopplad pga platsreservation
|
|
|
|
[da]
|
|
DROPPED_RES = Frakoblet pga. plads reservation
|
|
|
|
[pl]
|
|
DROPPED_RES = Wyrzucony z powodu rezerwacji slotow
|
|
|
|
[bp]
|
|
DROPPED_RES = Desconectado pois o slot esta reservado
|
|
|
|
[nl]
|
|
DROPPED_RES = Sorry, deze plaats is gereserveerd
|
|
|
|
[es]
|
|
DROPPED_RES = Desconectado por reserva de plazas
|
|
|
|
[cz]
|
|
DROPPED_RES = Vyhozen, slot je rezervovan
|
|
|
|
[fi]
|
|
DROPPED_RES = Pudotettiin palvelimelta slotvarauksen takia (adminslot)
|
|
|
|
[bg]
|
|
DROPPED_RES = Premahnat poradi rezervaciq na slot
|
|
|
|
[ro]
|
|
DROPPED_RES = Ai primit kick pentru rezervare slot
|
|
|
|
[hu]
|
|
DROPPED_RES = Helyfenntartás miatt kidobva.
|
|
|
|
[lt]
|
|
DROPPED_RES = Atjungtas, nes nera laisvos vietos
|
|
|
|
[sk]
|
|
DROPPED_RES = Prepac,ale slot je rezervovany
|
|
|
|
[mk]
|
|
DROPPED_RES = Otstranet poradi rezervacija na slot
|
|
|
|
[hr]
|
|
DROPPED_RES = Server je pun, nemate pristup rezerviranim mjestima
|
|
|
|
[bs]
|
|
DROPPED_RES = Server je pun, nemate pristup rezervisanim mjestima
|
|
|
|
[ru]
|
|
DROPPED_RES = Извините мест нет, это зарезервированный слот!
|
|
|
|
[cn]
|
|
DROPPED_RES = 由于你无法使用预留通道,以至于与服务器连接断开
|
|
|
|
[al]
|
|
DROPPED_RES = U largua për shkak të rezervimit të vendit që është plugini aktiv në server!
|
|
|
|
[pt]
|
|
DROPPED_RES = Foste desconectado por causa da reservação de slots
|