Skip to content

Latest commit

 

History

History
158 lines (117 loc) · 4.5 KB

File metadata and controls

158 lines (117 loc) · 4.5 KB

Description | 內容

Whitelist or ban players from specific country or area

Note
This plugin is private, Please contact me
此為私人插件, 請聯繫本人

  • Apply to | 適用於

     Any source game
    
  • Image
    ban_country_player_1

  • How does it work?
    • Set up configs/ban_country_player.cfg.
    • When player connects to server, detect the player's area via ip, kick the player if is in Restricted Area List
      • immune to be kicked if steam ID is in whitelist
      • admins are immune to be kicked
  • Important Step

  • Require | 必要安裝

    1. [INC] Multi Colors
  • ConVar | 指令
    • cfg/sourcemod/ban_country_player.cfg
       // 0=Plugin off, 1=Plugin on.
       ban_country_player_enable "1"
       
       // If 1, Announce to entire server if the connecting player got kicked
       ban_country_player_announce "1"
      
       // Players with these flags will not be kikced. (Empty = Everyone, -1: Nobody)
       ban_country_player_immune_flag "z"
      
       // 1 = Area/Country List is blacklist
       // 0 = Area/Country List is whitelist
       ban_country_player_block_white "1"
  • Command | 命令
    • Reload the 'ban country player' list (Adm Require: ADMFLAG_ROOT)

       sm_reloadlist_bca
    • View current 'ban country player' list (Adm Require: ADMFLAG_ROOT)

       sm_displaylist_bca
  • Translation Support | 支援翻譯

     translations/ban_country_player.phrases.txt
    
  • Changelog | 版本日誌
    • v1.3 (2024-3-27)

      • Update Cvars
    • v1.2 (2023-10-28)

      • Fix memory leak
    • v1.1 (2023-8-15)

      • Improve Data Config
    • v1.0 (2023-6-14)

      • Initial Release

中文說明

限制來自某些國家或地區的玩家,禁止進入伺服器

  • 圖示
    ban_country_player_1

  • 原理

    • 設置文件configs/ban_country_player.cfg,寫下限制地區列表與Steam帳號的豁免名單列表
    • 玩家連線時,從IP上提取地區位置,如果地區在名單上則不能加入
      • Steam帳號在豁免名單上的不會被踢
      • 有管理員權限的人不會被踢
  • 必看步驟

  • 指令中文介紹 (點我展開)
    • cfg/sourcemod/ban_country_player.cfg
       // 0=關閉插件, 1=啟動插件
       ban_country_player_enable "1"
      
       // 為1時,顯示被踢的玩家給全伺服器
       ban_country_player_announce "1"
      
       // 擁有這些權限的玩家,不會被踢
       ban_country_player_immune_flag "z"
      
       // 1 = 玩家的地區在"地區名單列表"上則不能加入,不在名單上則能加入
       // 0 = 玩家的地區在"地區名單列表"上則能加入,不在名單上則不能加入
       ban_country_player_block_white "1"
  • 命令中文介紹 (點我展開)
    • 重新加載 'ban country player' 文件 (權限: ADMFLAG_ROOT)

       sm_reloadlist_bca
    • 查看 'ban country player' 名單列表 (權限: ADMFLAG_ROOT)

       sm_displaylist_bca
  • 文件設定範例