Description
This plugin checks what country a player is from. Then will put the player in a talk room with other players from the same country. This has only been tested on CS:GO.
Convars
PHP Code:
ctr_enabled = <1/0> Default(1) "Enables the plugins"
ctr_mute_unknown_country <0/1> Default(0) "If the player country is unknown it will (0) Makes own talk room for unknown countries (1) Mute everyone for the client including client"
ctr_chat_message = <1/0> Default(1) "(1) Shows a chat message for what country room you're in. (0) Disables the message"
ctr_mute_update = <1/0> Default(1) "(1) Updates mutes with a timer (0) Uses only OnClientPutInServer"
ctr_mute_update_time = <60.0Min/320.0Max> Default(60.0) "The time in float for the timer for ctr_mute_update (Seconds)"
ctr_allow_hear_all = <1/0> Default(1) "(1) Lets players be able to hear every player or his own country. (0) players can only hear his own countries"
ctr_multiple_countries = <1/0> Default(1) "(1) Makes a .txt so multiple countries can hear each other (0) Disables multiple countries can hear each other"
[CSGO/CSS ONLY]
ctr_group_tags = <1/0> Default(1) "(1) Sets players tag as country (0) Disables country tag"
Change Log
PHP Code:
1.3.2 - Took off unnecessary code
1.3.1 - Fixed client is not connected.
1.3 - Fixed when ctr_group_tags is disabled it will not show chat messages. Fixed message sometimes show up when ctr_chat_message is disabled. Added a Hear every player cmd PLAYER CAN NOT BE HEARD BY OTHER PLAYERS. Fixed client not connected error message.
1.2 - Added 2 Convars, added players can do all talk room, added multiple countries can hear each other with the .txt file, added autoexec config.
1.1.1 - Changed ctr_mute_update_time minimum to 60.0
1.1 - Released plugin
Feature plans
Don't have any at the moment, but would love to add some new stuff suggested by you guys.
Installation
place the ctr_countries.txt file into addons/sourcemod/configs.
ctr_countries.txt example
PHP Code:
//Whatever the first country is then that country will hear the countries that follow behind it.
US||EU||UNKNOWN
EU||UNKNOWN
If any bugs were found please reply and I'll try to fix it asap.