Skip to content

Commit 100ccfc

Browse files
authored
Update README.md
1 parent f5cb3b0 commit 100ccfc

File tree

1 file changed

+94
-67
lines changed

1 file changed

+94
-67
lines changed

README.md

Lines changed: 94 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [CS2] Connect-Disconnect-Sound (1.0.8)
1+
# [CS2] Connect-Disconnect-Sound (1.0.9)
22

33
### Connect , Disconnect , Country , City , Message , Sound , Logs , Discord
44

@@ -25,74 +25,71 @@
2525
## .:[ Configuration ]:.
2626
```json
2727
{
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,
4330

44-
//-----------------------------------------------------------------------------------------
31+
//Remove Default Disconnect Message
32+
"RemoveDefaultDisconnect": true,
4533

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 ""
4741
"InGameSoundDisableCommands": "!stopsound,!stopsounds",
42+
4843
//Delete Inactive Players Older Than X Days (Save Cookies in ../addons/counterstrikesharp/plugins/CnD_Sound/Cookies/)
4944
"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",
5545

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+
//==========================
5763

5864
// If Its Enabled Logs Will Located in ../addons/counterstrikesharp/plugins/CnD_Sound/logs/
5965
"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,
7066

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,
7273

7374
//Send Log To Discord Via WebHookURL
7475
//SendLogToWebHook (0) = Disable
7576
//SendLogToWebHook (1) = Text Only
7677
//SendLogToWebHook (2) = Text With + Name + Hyperlink To Steam Profile
7778
//SendLogToWebHook (3) = Text With + Name + Hyperlink To Steam Profile + Profile Picture
78-
"SendLogToWebHook": 0,
79+
"Log_SendLogToDiscordOnMode": 0,
80+
7981
//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",
8683

87-
//-----------------------------------------------------------------------------------------
84+
//Discord WebHook
85+
"Log_DiscordWebHookURL": "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
8886

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}]",
9390

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",
9693
}
9794
```
9895

@@ -109,31 +106,61 @@
109106
//{LightBlue} {Olive} {Lime} {Red} {Purple} {Grey}
110107
//{Default} {White} {Darkred} {Green} {LightYellow}
111108
//==========================
112-
// Message_Connect/Disconnect
109+
// Other
113110
//==========================
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
126112
//==========================
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"
132144
}
133145
```
134146

135147
## .:[ Change Log ]:.
136148
```
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+
137164
(1.0.8)
138165
-Fix Some Bugs
139166
-Fix InGameSoundDisableCommands

0 commit comments

Comments
 (0)