Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oqyh authored Jan 6, 2024
1 parent 34706c9 commit 0827fd4
Showing 1 changed file with 49 additions and 31 deletions.
80 changes: 49 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [CS2] Connect-Disconnect-Sound (1.0.4)
# [CS2] Connect-Disconnect-Sound (1.0.5)

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

Expand All @@ -24,6 +24,7 @@

## .:[ Configuration ]:.
```json
// This configuration was automatically generated by CounterStrikeSharp for plugin 'CnD_Sound', at 2024/01/05 08:54:23
{
// you can use these in Connect or Disconnect Message
//{TIME} == Time Formate "LogInsideFileTimeFormat"
Expand All @@ -39,53 +40,70 @@
//{IP} = 127.0.0.0
//Colors Available = {default} {white} {darkred} {green} {lightyellow} {lightblue} {olive} {lime} {red} {lightpurple}
//{purple} {grey} {yellow} {gold} {silver} {blue} {darkblue} {bluegrey} {magenta} {lightred} {orange}


//Connect And Disconnect Format In Game, TO DISABLE MAKE IT "" empty
"MessageConsoleFormatConnect": "{green}Gold KingZ {grey}| {purple}{PLAYERNAME} {lime}Connected [{SHORTCOUNTRY} - {CITY}]",
"MessageConsoleFormatDisconnect": "{green}Gold KingZ {grey}| {purple}{PLAYERNAME} {red}Disconnected [{SHORTCOUNTRY} - {CITY}]",

// you can test any sound path ingame console type "play <soundpath>"
// Sound Path will in https://github.com/oqyh/cs2-Connect-Disconnect-Sound/blob/main/sounds/sounds.txt
"ConnectSound": true,
"ConnectSoundPath": "sounds/buttons/blip1.vsnd_c",
"DisconnectSound": true,
"DisconnectSoundPath": "sounds/player/taunt_clap_01.vsnd_c",



//To Disable Any Make It Empty Like This ""
"InGameMessageFormatConnect": "{green}Gold KingZ {grey}| {purple}{PLAYERNAME} {lime}Connected [{SHORTCOUNTRY} - {CITY}]",
"InGameMessageFormatDisconnect": "{green}Gold KingZ {grey}| {purple}{PLAYERNAME} {red}Disconnected [{SHORTCOUNTRY} - {CITY}]",

//-----------------------------------------------------------------------------------------

//To Disable Any Make It Empty Like This ""
"InGameSoundConnect": "sounds/buttons/blip1.vsnd_c",
"InGameSoundDisconnect": "sounds/player/taunt_clap_01.vsnd_c",

//-----------------------------------------------------------------------------------------

// If Its Enabled Logs Will Located in ../addons/counterstrikesharp/plugins/CnD_Sound/logs/
"SendLogToText": false,
// Log File Format .txt or .pdf ect...
"LogFileFormat": ".txt",
// Date and Time Formate
"LogFileDateFormat": "MM-dd-yyyy",
"LogInsideFileTimeFormat": "HH:mm:ss",
//Connect And Disconnect Format In Log, TO DISABLE MAKE IT "" empty
"LogTextFormatConnect": "[{TIME}] [Playername:{PLAYERNAME}] CONNECTED TO THE SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",
"LogTextFormatDisconnect": "[{TIME}] [Playername:{PLAYERNAME}] DISCONNECTED FROM SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",



//To Disable Any Make It Empty Like This ""
"LogTextFormatConnect": "[{DATE} - {TIME}] {PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}] [{STEAMID} - {IP}]",
"LogTextFormatDisconnect": "[{DATE} - {TIME}] {PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}] [{STEAMID64}] [{STEAMID} - {IP}]",
//Auto Delete Logs If More Than X (Days) Old
"AutoDeleteLogsMoreThanXdaysOld": 0,

//-----------------------------------------------------------------------------------------

//Send Log To Discord Via WebHookURL
"SendLogToWebHook": false,
//SendLogToWebHook (0) = Disable
//SendLogToWebHook (1) = Text Only
//SendLogToWebHook (2) = Text With + Name + Hyperlink To Steam Profile
//SendLogToWebHook (3) = Text With + Name + Hyperlink To Steam Profile + Profile Picture
"SendLogToWebHook": 0,
//If SendLogToWebHook (2) or SendLogToWebHook (3) How Would You Side Color Message To Be Check (https://www.color-hex.com/) For Colors
"SideColorMessage": "00FFFF",
//Discord WebHook
"WebHookURL": "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
//Connect And Disconnect Format In Discord, TO DISABLE MAKE IT "" empty
"LogDiscordChatFormatConnect": "[{DATE} - {TIME}] [Playername:{PLAYERNAME}] CONNECTED TO THE SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",
"LogDiscordChatFormatDisconnect": "[{DATE} - {TIME}] [Playername:{PLAYERNAME}] DISCONNECTED FROM SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",



//Send Log To Server Console
//To Disable Any Make It Empty Like This ""
"LogDiscordChatFormatConnect": "{PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}]",
"LogDiscordChatFormatDisconnect": "{PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}]",

//-----------------------------------------------------------------------------------------

"SendLogToServerConsole": false,
"LogServerConsoleFormatConnect": "[{DATE} - {TIME}] [Playername:{PLAYERNAME}] CONNECTED TO THE SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",
"LogServerConsoleFormatDisconnect": "[{DATE} - {TIME}] [Playername:{PLAYERNAME}] DISCONNECTED FROM SERVER [SteamdID64:{STEAMID64}] [IpAddress:{IP}] [Long Country:{LONGCOUNTRY}] [City:{CITY}]",
//To Disable Any Make It Empty Like This ""
"LogServerConsoleFormatConnect": "Gold KingZ | {PLAYERNAME} Connected [{SHORTCOUNTRY} - {CITY}]",
"LogServerConsoleFormatDisconnect": "Gold KingZ | {PLAYERNAME} Disconnected [{SHORTCOUNTRY} - {CITY}]",

//-----------------------------------------------------------------------------------------
"ConfigVersion": 1
}
```


## .:[ Change Log ]:.
```
(1.0.5)
-Added "AutoDeleteLogsMoreThanXdaysOld"
-Added "SendLogToWebHook" Mode 1/2/3
-Added "SideColorMessage"
-Fix Some Bugs
-Fix Connect / Disconnect Lag On Discord WebHook
(1.0.4)
-Added "SendLogToServerConsole"
-Added "LogDiscordChatFormatDisconnect"
Expand Down

0 comments on commit 0827fd4

Please sign in to comment.