Raised This Month: $51 Target: $400
 12% 

[ANY?] Country talk room <1.3.2/4/4/2018>


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alexr153
AlliedModders Donor
Join Date: Jul 2015
Location: In a house
Plugin ID:
5731
Plugin Version:
1.1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin 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.
    Old 07-24-2017 , 03:26   [ANY?] Country talk room <1.3.2/4/4/2018>
    Reply With Quote #1

    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 messagesFixed message sometimes show up when ctr_chat_message is disabledAdded a Hear every player cmd PLAYER CAN NOT BE HEARD BY OTHER PLAYERSFixed client not connected error message.
    1.2  -  Added 2 Convarsadded players can do all talk roomadded multiple countries can hear each other with the .txt fileadded 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.
    Attached Files
    File Type: smx country_talk_room.smx (11.2 KB, 210 views)
    File Type: sp Get Plugin or Get Source (country_talk_room.sp - 546 views - 12.9 KB)

    Last edited by alexr153; 04-05-2018 at 02:01.
    alexr153 is offline
    ASKER_CZ
    BANNED
    Join Date: Nov 2016
    Old 07-24-2017 , 11:54   Re: [ANY?] Country talk room
    Reply With Quote #2

    Thank you.

    I'm suggesting this :

    1) If are like more countries talking same language, then add option to add config like "DE,AT,CH,etc etc" will be for example in group "a" (GROUP, NOT FLAG) and will hear each other.

    2) Add command for example like !ctr , which will open menu where can player choose, if he wanna hear everyone or just his own country / group.

    What do you think? :-)
    ASKER_CZ is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 07-24-2017 , 17:13   Re: [ANY?] Country talk room
    Reply With Quote #3

    Quote:
    Originally Posted by ASKER_CZ View Post
    Thank you.

    I'm suggesting this :

    1) If are like more countries talking same language, then add option to add config like "DE,AT,CH,etc etc" will be for example in group "a" (GROUP, NOT FLAG) and will hear each other.

    2) Add command for example like !ctr , which will open menu where can player choose, if he wanna hear everyone or just his own country / group.

    What do you think? :-)
    Okay, the 2nd suggestion will be added, but can you give me a little bit more information on the first one I'm confused on what you want me to do.

    Last edited by alexr153; 07-24-2017 at 17:31.
    alexr153 is offline
    ASKER_CZ
    BANNED
    Join Date: Nov 2016
    Old 07-24-2017 , 18:33   Re: [ANY?] Country talk room
    Reply With Quote #4

    Like when few countries use same or very similar language, make simple config, where i can put shortcut of these countries so they can hear each other but don't hear other countries (unless they don't change different)

    Last edited by ASKER_CZ; 07-24-2017 at 18:34.
    ASKER_CZ is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 07-24-2017 , 18:51   Re: [ANY?] Country talk room
    Reply With Quote #5

    Quote:
    Originally Posted by ASKER_CZ View Post
    Like when few countries use same or very similar language, make simple config, where i can put shortcut of these countries so they can hear each other but don't hear other countries (unless they don't change different)
    Oh okay so make a config where you can make other countries hear each other.
    alexr153 is offline
    ASKER_CZ
    BANNED
    Join Date: Nov 2016
    Old 07-24-2017 , 19:27   Re: [ANY?] Country talk room
    Reply With Quote #6

    exactly.
    ASKER_CZ is offline
    romeo7
    Senior Member
    Join Date: Mar 2017
    Old 08-13-2017 , 04:22   Re: [ANY?] Country talk room <1.2/7/24/2017>
    Reply With Quote #7

    very nice work. thanks. but have 2 problem:
    1. when disabled TAG option CHAT message not work.
    2.when choose HEAR ALL in !ctr menu not hears all countries, hears only who select HEAR ALL option, too.

    and this error:

    L 08/13/2017 - 12:27:58: [SM] Exception reported: Receiver client 1 is not connected
    L 08/13/2017 - 12:27:58: [SM] Blaming: country_talk_room.smx
    L 08/13/2017 - 12:27:58: [SM] Call stack trace:
    L 08/13/2017 - 12:27:58: [SM] [0] SetListenOverride
    L 08/13/2017 - 12:27:58: [SM] [1] Line 309, D:\Steam Servers\Counter-Strike Global Offensive Beta - Dedicated Servers\Counter-Strike Global Offensive Beta - Dedicated Server Public test\0CSPUBLIC\csgo\addons\sourcemod\scriptin g\country_talk_room.sp::checkOtherClients
    L 08/13/2017 - 12:27:58: [SM] [2] Line 171, D:\Steam Servers\Counter-Strike Global Offensive Beta - Dedicated Servers\Counter-Strike Global Offensive Beta - Dedicated Server Public test\0CSPUBLIC\csgo\addons\sourcemod\scriptin g\country_talk_room.sp::updateMute

    Last edited by romeo7; 08-13-2017 at 04:30.
    romeo7 is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 08-13-2017 , 23:14   Re: [ANY?] Country talk room <1.2/7/24/2017>
    Reply With Quote #8

    Quote:
    Originally Posted by romeo7 View Post
    very nice work. thanks. but have 2 problem:
    1. when disabled TAG option CHAT message not work.
    2.when choose HEAR ALL in !ctr menu not hears all countries, hears only who select HEAR ALL option, too.

    and this error:

    L 08/13/2017 - 12:27:58: [SM] Exception reported: Receiver client 1 is not connected
    L 08/13/2017 - 12:27:58: [SM] Blaming: country_talk_room.smx
    L 08/13/2017 - 12:27:58: [SM] Call stack trace:
    L 08/13/2017 - 12:27:58: [SM] [0] SetListenOverride
    L 08/13/2017 - 12:27:58: [SM] [1] Line 309, D:\Steam Servers\Counter-Strike Global Offensive Beta - Dedicated Servers\Counter-Strike Global Offensive Beta - Dedicated Server Public test\0CSPUBLIC\csgo\addons\sourcemod\scriptin g\country_talk_room.sp::checkOtherClients
    L 08/13/2017 - 12:27:58: [SM] [2] Line 171, D:\Steam Servers\Counter-Strike Global Offensive Beta - Dedicated Servers\Counter-Strike Global Offensive Beta - Dedicated Server Public test\0CSPUBLIC\csgo\addons\sourcemod\scriptin g\country_talk_room.sp::updateMute
    Thanks for the bug notice, I will fix it asap.
    Edit: Also for this "2.when choose HEAR ALL in !ctr menu not hears all countries, hears only who select HEAR ALL option, too." It's supposed to do that, because if you could hear all players and you're trying to talk to them while they can't hear you kinda pointless then.

    Last edited by alexr153; 08-13-2017 at 23:18.
    alexr153 is offline
    romeo7
    Senior Member
    Join Date: Mar 2017
    Old 08-14-2017 , 06:26   Re: [ANY?] Country talk room <1.2/7/24/2017>
    Reply With Quote #9

    Quote:
    Originally Posted by alexr153 View Post
    Thanks for the bug notice, I will fix it asap.
    Edit: Also for this "2.when choose HEAR ALL in !ctr menu not hears all countries, hears only who select HEAR ALL option, too." It's supposed to do that, because if you could hear all players and you're trying to talk to them while they can't hear you kinda pointless then.
    thanks. good luck! but will be good HEAR ALL.
    romeo7 is offline
    alexr153
    AlliedModders Donor
    Join Date: Jul 2015
    Location: In a house
    Old 08-14-2017 , 19:42   Re: [ANY?] Country talk room <1.3/8/14/2017>
    Reply With Quote #10

    I will add the hear all, but he can't be heard by all other players.
    alexr153 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 06:08.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode