|
1 |
| -# [CS2] Connect-Disconnect-Sound (1.0.8) |
| 1 | +# [CS2] Connect-Disconnect-Sound (1.0.9) |
2 | 2 |
|
3 | 3 | ### Connect , Disconnect , Country , City , Message , Sound , Logs , Discord
|
4 | 4 |
|
|
25 | 25 | ## .:[ Configuration ]:.
|
26 | 26 | ```json
|
27 | 27 | {
|
28 |
| - // you can use these in Connect or Disconnect Message |
29 |
| - //{TIME} == Time Formate "LogInsideFileTimeFormat" |
30 |
| - //{DATE} == Date Formate "LogFileDateFormat" |
31 |
| - //{PLAYERNAME} == Player Who Joined |
32 |
| - //{LONGCOUNTRY} == ex: United Arab Emirates |
33 |
| - //{SHORTCOUNTRY} == ex: AE |
34 |
| - //{CITY} == ex: Abu Dhabi |
35 |
| - //{STEAMID} = STEAM_0:1:122910632 |
36 |
| - //{STEAMID3} = U:1:245821265 |
37 |
| - //{STEAMID32} = 245821265 |
38 |
| - //{STEAMID64} = 76561198206086993 |
39 |
| - //{IP} = 127.0.0.0 |
40 |
| - //{REASON} = Disconnect Reason |
41 |
| - //Colors Available = {default} {white} {darkred} {green} {lightyellow} {lightblue} {olive} {lime} {red} {lightpurple} |
42 |
| - //{purple} {grey} {yellow} {gold} {silver} {blue} {darkblue} {bluegrey} {magenta} {lightred} {orange} |
| 28 | + //Disable Looping Connections To Anti Spam Chat |
| 29 | + "DisableLoopConnections": true, |
43 | 30 |
|
44 |
| - //----------------------------------------------------------------------------------------- |
| 31 | + //Remove Default Disconnect Message |
| 32 | + "RemoveDefaultDisconnect": true, |
45 | 33 |
|
46 |
| - //Add Many Commands You Like And To Disable Any Make It Empty Like This "" |
| 34 | + //Sound Path Of Connect Players To Disable Make it "" |
| 35 | + "InGameSoundConnect": "sounds/buttons/blip1.vsnd_c", |
| 36 | + //Sound Path Of Disconnect Players To Disable Make it "" |
| 37 | + "InGameSoundDisconnect": "sounds/player/taunt_clap_01.vsnd_c", |
| 38 | + //Allow These Group Only To Toggle On/Off Sounds "" Means Anyone |
| 39 | + "InGameAllowDisableCommandsOnlyForGroups": "", |
| 40 | + //Command Toggle On/Off To Disable This Make it "" |
47 | 41 | "InGameSoundDisableCommands": "!stopsound,!stopsounds",
|
| 42 | + |
48 | 43 | //Delete Inactive Players Older Than X Days (Save Cookies in ../addons/counterstrikesharp/plugins/CnD_Sound/Cookies/)
|
49 | 44 | "RemovePlayerCookieOlderThanXDays": 7,
|
50 |
| - // you can test any sound path ingame console type "play <soundpath>" |
51 |
| - // Sound Path will in https://github.com/oqyh/cs2-Connect-Disconnect-Sound/blob/main/sounds/sounds.txt |
52 |
| - //To Disable Any Make It Empty Like This "" |
53 |
| - "InGameSoundConnect": "sounds/buttons/blip1.vsnd_c", |
54 |
| - "InGameSoundDisconnect": "sounds/player/taunt_clap_01.vsnd_c", |
55 | 45 |
|
56 |
| - //----------------------------------------------------------------------------------------- |
| 46 | + |
| 47 | + //========================== |
| 48 | + // Message Connect/Disconnect |
| 49 | + //========================== |
| 50 | + // {DATE} = Date |
| 51 | + // {TIME} = Time |
| 52 | + // {PLAYERNAME} = PlayerName |
| 53 | + // {STEAMID} = SteamID [ex: STEAM_0:1:122910632] |
| 54 | + // {STEAMID3} = SteamID3 [ex: U:1:245821265] |
| 55 | + // {STEAMID32} = SteamID32 [ex: 245821265] |
| 56 | + // {STEAMID64} = SteamID64 [ex: 76561198206086993] |
| 57 | + // {IP} = IpAddress |
| 58 | + // {LONGCOUNTRY} = LongCountry [ex: United Arab Emirates] |
| 59 | + // {SHORTCOUNTRY} = ShortCountry [ex: AE] |
| 60 | + // {CITY} = City [ex: Abu Dhabi] |
| 61 | + // {REASON} = Disconnect Reason |
| 62 | + //========================== |
57 | 63 |
|
58 | 64 | // If Its Enabled Logs Will Located in ../addons/counterstrikesharp/plugins/CnD_Sound/logs/
|
59 | 65 | "SendLogToText": false,
|
60 |
| - // Log File Format .txt or .pdf ect... |
61 |
| - "LogFileFormat": ".txt", |
62 |
| - // Date and Time Formate |
63 |
| - "LogFileDateFormat": "MM-dd-yyyy", |
64 |
| - "LogInsideFileTimeFormat": "HH:mm:ss", |
65 |
| - //To Disable Any Make It Empty Like This "" |
66 |
| - "LogTextFormatConnect": "[{DATE} - {TIME}] {PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}] [{STEAMID} - {IP}]", |
67 |
| - "LogTextFormatDisconnect": "[{DATE} - {TIME}] {PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}] [{STEAMID64}] [{STEAMID} - {IP}] [{REASON}]", |
68 |
| - //Auto Delete Logs If More Than X (Days) Old |
69 |
| - "AutoDeleteLogsMoreThanXdaysOld": 0, |
70 | 66 |
|
71 |
| - //----------------------------------------------------------------------------------------- |
| 67 | + //How Message Look Like To Disable Make it "" |
| 68 | + "Log_TextConnectMessageFormat": "[{DATE} - {TIME}] {PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}] [{STEAMID} - {IP}]", |
| 69 | + "Log_TextDisconnectMessageFormat": "[{DATE} - {TIME}] {PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}] [{STEAMID64}] [{STEAMID} - {IP}] [{REASON}]", |
| 70 | + |
| 71 | + //Auto Delete Logs If More Than X (Days) Old |
| 72 | + "Log_AutoDeleteLogsMoreThanXdaysOld": 7, |
72 | 73 |
|
73 | 74 | //Send Log To Discord Via WebHookURL
|
74 | 75 | //SendLogToWebHook (0) = Disable
|
75 | 76 | //SendLogToWebHook (1) = Text Only
|
76 | 77 | //SendLogToWebHook (2) = Text With + Name + Hyperlink To Steam Profile
|
77 | 78 | //SendLogToWebHook (3) = Text With + Name + Hyperlink To Steam Profile + Profile Picture
|
78 |
| - "SendLogToWebHook": 0, |
| 79 | + "Log_SendLogToDiscordOnMode": 0, |
| 80 | + |
79 | 81 | //If SendLogToWebHook (2) or SendLogToWebHook (3) How Would You Side Color Message To Be Check (https://www.color-hex.com/) For Colors
|
80 |
| - "SideColorMessage": "00FFFF", |
81 |
| - //Discord WebHook |
82 |
| - "WebHookURL": "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", |
83 |
| - //To Disable Any Make It Empty Like This "" |
84 |
| - "LogDiscordChatFormatConnect": "{PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}]", |
85 |
| - "LogDiscordChatFormatDisconnect": "{PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}] [{REASON}]", |
| 82 | + "Log_DiscordSideColor": "00FFFF", |
86 | 83 |
|
87 |
| - //----------------------------------------------------------------------------------------- |
| 84 | + //Discord WebHook |
| 85 | + "Log_DiscordWebHookURL": "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", |
88 | 86 |
|
89 |
| - "SendLogToServerConsole": false, |
90 |
| - //To Disable Any Make It Empty Like This "" |
91 |
| - "LogServerConsoleFormatConnect": "Gold KingZ | {PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}]", |
92 |
| - "LogServerConsoleFormatDisconnect": "Gold KingZ | {PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}] [{REASON}]", |
| 87 | + //How Message Look Like To Disable Make it "" |
| 88 | + "Log_DiscordConnectMessageFormat": "{PLAYERNAME} Connected [{LONGCOUNTRY} - {CITY}]", |
| 89 | + "Log_DiscordDisconnectMessageFormat": "{PLAYERNAME} Disconnected [{LONGCOUNTRY} - {CITY}] [{REASON}]", |
93 | 90 |
|
94 |
| - //----------------------------------------------------------------------------------------- |
95 |
| - "ConfigVersion": 1 |
| 91 | + //If Log_SendLogToDiscordOnMode (3) And Player Doesn't Have Profile Picture Which Picture Do You Like To Be Replaced |
| 92 | + "Log_DiscordUsersWithNoAvatarImage": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b5/b5bd56c1aa4644a474a2e4972be27ef9e82e517e_full.jpg", |
96 | 93 | }
|
97 | 94 | ```
|
98 | 95 |
|
|
109 | 106 | //{LightBlue} {Olive} {Lime} {Red} {Purple} {Grey}
|
110 | 107 | //{Default} {White} {Darkred} {Green} {LightYellow}
|
111 | 108 | //==========================
|
112 |
| - // Message_Connect/Disconnect |
| 109 | + // Other |
113 | 110 | //==========================
|
114 |
| - //Date = {0} |
115 |
| - //Time = {1} |
116 |
| - //PlayerName = {2} |
117 |
| - //SteamID [ex: STEAM_0:1:122910632] = {3} |
118 |
| - //SteamID3 [ex: U:1:245821265] = {4} |
119 |
| - //SteamID32 [ex: 245821265] = {5} |
120 |
| - //SteamID64 [ex: 76561198206086993] = {6} |
121 |
| - //IpAddress = {7} |
122 |
| - //LongCountry [ex: United Arab Emirates] = {8} |
123 |
| - //ShortCountry [ex: AE] = {9} |
124 |
| - //City [ex: Abu Dhabi] = {10} |
125 |
| - //Disconnect Reason = {11} |
| 111 | + //{nextline} = Print On Next Line |
126 | 112 | //==========================
|
127 |
| - "InGame_Message_Connect": "{green}Gold KingZ {grey}| {purple}{2} {lime}Connected [{9} - {10}]", |
128 |
| - "InGame_Message_Disconnect": "{green}Gold KingZ {grey}| {purple}{2} {red}Disconnected [{11}]", |
129 |
| - |
130 |
| - "InGame_Command_Enabled": "{green}Gold KingZ {grey}| Connect/Disconnect Sounds Has Been {lime}Enabled", |
131 |
| - "InGame_Command_Disabled": "{green}Gold KingZ {grey}| Connect/Disconnect Sounds Has Been {darkred}Disabled" |
| 113 | + // Message Connect/Disconnect |
| 114 | + //========================== |
| 115 | + // {0} = Date |
| 116 | + // {1} = Time |
| 117 | + // {2} = PlayerName |
| 118 | + // {3} = SteamID [ex: STEAM_0:1:122910632] |
| 119 | + // {4} = SteamID3 [ex: U:1:245821265] |
| 120 | + // {5} = SteamID32 [ex: 245821265] |
| 121 | + // {6} = SteamID64 [ex: 76561198206086993] |
| 122 | + // {7} = IpAddress |
| 123 | + // {8} = LongCountry [ex: United Arab Emirates] |
| 124 | + // {9} = ShortCountry [ex: AE] |
| 125 | + // {10} = City [ex: Abu Dhabi] |
| 126 | + // {11} = Disconnect Reason |
| 127 | + //========================== |
| 128 | + |
| 129 | + "chat.message.connect": "{green}Gold KingZ {grey}| {purple}{2} {lime}Connected [{9} - {10}]", |
| 130 | + "chat.message.disconnect": "{green}Gold KingZ {grey}| {purple}{2} {red}Disconnected [{11}]", |
| 131 | + |
| 132 | + "console.message.connect": "Gold KingZ | {2} Connected [{9} - {10}]", |
| 133 | + "console.message.disconnect": "Gold KingZ | {2} Disconnected [{9} - {10}] [{11}]", |
| 134 | + |
| 135 | + "command.not.allowed": "{green}Gold KingZ {grey}| {darkred}Toggle Connect/Disconnect Sounds For Vips", |
| 136 | + "command.sound.enabled": "{green}Gold KingZ {grey}| Connect/Disconnect Sounds Has Been {lime}Enabled", |
| 137 | + "command.sound.disabled": "{green}Gold KingZ {grey}| Connect/Disconnect Sounds Has Been {darkred}Disabled", |
| 138 | + |
| 139 | + "invalid.steamid": "InvalidSteamID", |
| 140 | + "invalid.ipadress": "InValidIpAddress", |
| 141 | + "unknown.short.country": "U/C", |
| 142 | + "unknown.long.country": "Unknown Country", |
| 143 | + "unknown.city": "Unknown City" |
132 | 144 | }
|
133 | 145 | ```
|
134 | 146 |
|
135 | 147 | ## .:[ Change Log ]:.
|
136 | 148 | ```
|
| 149 | +(1.0.9) |
| 150 | +-Fix Some Bugs |
| 151 | +-Added DisableLoopConnections |
| 152 | +-Added RemoveDefaultDisconnect |
| 153 | +-Added InGameAllowDisableCommandsOnlyForGroups |
| 154 | +-Added Log_DiscordUsersWithNoAvatarImage |
| 155 | +-Added Lang console.message.connect |
| 156 | +-Added Lang console.message.disconnect |
| 157 | +-Added Lang command.not.allowed |
| 158 | +-Added Lang invalid.steamid |
| 159 | +-Added Lang invalid.ipadress |
| 160 | +-Added Lang unknown.short.country |
| 161 | +-Added Lang unknown.long.country |
| 162 | +-Added Lang unknown.city |
| 163 | +
|
137 | 164 | (1.0.8)
|
138 | 165 | -Fix Some Bugs
|
139 | 166 | -Fix InGameSoundDisableCommands
|
|
0 commit comments