Whitelist or ban players from specific country or area
Note
This plugin is private, Please contact me
此為私人插件, 請聯繫本人
-
Apply to | 適用於
Any source game -
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
- To retrieve country and city from client, You must install country and city database
-
Require | 必要安裝
-
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"
- cfg/sourcemod/ban_country_player.cfg
-
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
-
-
Data Config
-
configs/ban_country_player.cfg
//Restricted Area List - Do not delete this line Taiwan //Steam64 ID Whitelist - Do not delete this line XXXXXXXXXXXX
-
-
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
-
限制來自某些國家或地區的玩家,禁止進入伺服器
-
原理
- 設置文件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"
- cfg/sourcemod/ban_country_player.cfg
-
命令中文介紹 (點我展開)
-
重新加載 'ban country player' 文件 (權限: ADMFLAG_ROOT)
sm_reloadlist_bca
-
查看 'ban country player' 名單列表 (權限: ADMFLAG_ROOT)
sm_displaylist_bca
-
-
文件設定範例
-
文件位於 configs/ban_country_player.cfg
//Restricted Area List - Do not delete this line <== 地區名單列表 - 請勿刪除此行 Taiwan //Steam64 ID Whitelist - Do not delete this line <== Steam ID 豁免名單列表,格式為SteamId 64 - 請勿刪除此行 XXXXXXXXXXXX
-

