Skip to content

Commit

Permalink
chore: add block spectators from voting feature to documentation
Browse files Browse the repository at this point in the history
New cvar:
- sv_ag_block_vote_spectators "1" (Default: 1) - Block spectators from voting
  • Loading branch information
7mochi committed Sep 16, 2024
1 parent 72380ed commit 8ec9abd
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If you have any problem in your server, before opening an issue or contacting me
- Block access to players who have the game via Family Sharing. (Optional, disabled by default).
- Random spawns (Optional, disabled by default).
- Blocks location/HP/Weapon/etc messages for spectators.
- Block spectators from voting (Optional, enabled by default).
- Respawn time are now FPS-independent.
- Fixes bodies frozen in the air when using high fps.
- Check for new updates and it will notify you in the server console.
Expand All @@ -49,6 +50,7 @@ If you have any problem in your server, before opening an issue or contacting me
- sv_ag_block_family_sharing "0"
- sv_ag_random_spawns "0"
- sv_ag_block_cmd_enhancements "1"
- sv_ag_block_vote_spectators "1"
- sv_ag_steam_api_key ""
- sv_ag_check_updates "1"
- sv_ag_check_updates_retrys "3"
Expand Down
2 changes: 2 additions & 0 deletions README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Si tienes algún problema en tu servidor, antes de abrir una issue o contactarme
- Bloquear el acceso a los jugadores que tengan el juego vía prestamo familiar. (Opcional, por defecto está desactivado).
- Spawns aleatorias (Opcional, por defecto está desactivado).
- Bloquea mensajes de ubicación/HP/arma/etc para los espectadores.
- Bloquear que los espectadores voten (Opcional, activado por defecto).
- Los tiempos de respawn son ahora independientes de los FPS.
- Arregla los cuerpos congelados en el aire cuando se utilizan altos fps.
- Verifica si hay nuevas actualizaciones y te notificará en la consola del server.
Expand All @@ -48,6 +49,7 @@ Si tienes algún problema en tu servidor, antes de abrir una issue o contactarme
- sv_ag_block_family_sharing "0"
- sv_ag_random_spawns "0"
- sv_ag_block_cmd_enhancements "1"
- sv_ag_block_vote_spectators "1"
- sv_ag_steam_api_key ""
- sv_ag_check_updates "1"
- sv_ag_check_updates_retrys "3"
Expand Down
2 changes: 2 additions & 0 deletions README_PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Se tiver um problema no seu servidor antes de abrir uma issue ou entrar em conta
- Bloquear o acesso aos jogadores que têm o jogo através do compartilhamento de bibliotecas.
- Spawns aleatórias (Opcional, por padrão está desabilitado).
- Localização dos blocos/Mensagens de localização/HP/Weapon/etc para os espectadores.
- Bloquear a votação dos espectadores (opcional, por padrão está ativado).
- Os tempos de respawn são agora independentes do FPS.
- Corrige corpos congelados em pleno ar quando se usa fps elevado.
- Verifica se há novas actualizações e será notificado na consola do servidor.
Expand All @@ -47,6 +48,7 @@ Se tiver um problema no seu servidor antes de abrir uma issue ou entrar em conta
- sv_ag_block_family_sharing "0"
- sv_ag_random_spawns "0"
- sv_ag_block_cmd_enhancements "1"
- sv_ag_block_vote_spectators "1"
- sv_ag_steam_api_key ""
- sv_ag_check_updates "1"
- sv_ag_check_updates_retrys "3"
Expand Down
1 change: 1 addition & 0 deletions assets/gamemodes/llhl.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ sv_ag_steam_api_key ""
sv_ag_block_family_sharing "0"
sv_ag_random_spawns "0"
sv_ag_block_cmd_enhancements "1"
sv_ag_block_vote_spectators "1"
sv_ag_check_updates "1"
sv_ag_check_updates_retrys "3"
sv_ag_check_updates_retry_delay "2.0"
1 change: 1 addition & 0 deletions assets/motd_llhl_en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ This gamemode is currently used for the Liga Latinoamericana de Half-Life (LLHL)
# Block access to players who have the game via Family Sharing
# Random spawns
# Blocks location/HP/Weapon/etc messages for spectators
# Block spectators from voting
# Respawn time are now FPS-independent
# Fixes bodies frozen in the air when using high fps

Expand Down
1 change: 1 addition & 0 deletions assets/motd_llhl_es.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Este modo de juego se usa actualmente para la Liga Latinoamericana de Half-Life
# Bloquear el acceso a los jugadores que tengan el juego vía prestamo familiar
# Spawns aleatorios
# Bloquea mensajes de ubicación/HP/arma/etc para los espectadores
# Bloquear que los espectadores voten
# Los tiempos de respawn son ahora independientes de los FPS
# Arregla los cuerpos congelados en el aire cuando se utilizan altos fps

Expand Down
1 change: 1 addition & 0 deletions assets/motd_llhl_pt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Este modo de jogo é actualmente utilizado para a Liga Latinoamericana de Half-L
# Bloquear o acesso aos jogadores que têm o jogo através do compartilhamento de bibliotecas
# Spawns aleatórias
# Localização dos blocos/Mensagens de localização/HP/Weapon/etc para os espectadores
# Bloquear a votação dos espectadores
# Corrige corpos congelados em pleno ar quando se usa fps elevado
# Verifica se há novas actualizações e será notificado na consola do servidor

Expand Down
3 changes: 3 additions & 0 deletions src/scripts/llhl.sma
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- Block access to players who have the game via Family Sharing. (Optional, disabled by default).
- Random spawns (Optional, disabled by default)
- Blocks location/HP/Weapon/etc messages for spectators
- Block spectators from voting (Optional, enabled by default)
- Respawn time are now FPS-independent
- Fixes bodies frozen in the air when using high fps
- Check for new updates and it will notify you in the server console
Expand All @@ -52,6 +53,7 @@
- sv_ag_block_family_sharing "0"
- sv_ag_random_spawns "0"
- sv_ag_block_cmd_enhancements "1"
- sv_ag_block_vote_spectators "1"
- sv_ag_steam_api_key ""
- sv_ag_check_updates "1"
- sv_ag_check_updates_retrys "3"
Expand Down Expand Up @@ -587,6 +589,7 @@ public FwFpsKick(id, dest, ent) {
return PLUGIN_HANDLED;

get_user_name(player, username, charsmax(username));
// TODO: This message is sent twice, probably because the forward is being executed very quickly in player PostThink()
log_amx("%L", LANG_SERVER, "FPSL_KICK_MSG", username, fpsLimit);
client_print(0, print_chat, "%l", "FPSL_KICK_MSG", username, fpsLimit);

Expand Down

0 comments on commit 8ec9abd

Please sign in to comment.