PLUGIN - DiscordStatus

Spatiul dedicat dezvoltatorilor. Aici gasesti resurse pentru CounterStrikeSharp, ajutor pentru cod si scripting avansat.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 2388
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

PLUGIN - DiscordStatus

Post by greenie »

Discord Status
This CSSharp plugin allows monitoring server status from discord with cute embeds and nameformat support.

Requirments
CounterStrikeSharp >= 101

Usage
Install plugin like u use to
Make a webhost server and put connect.php there if you have one(you can use free webhosting like 000webhost)* not required
Do the samething for map img url (or see below)
Load the plugin
Change the config (/addons/counterstrikesharp/configs/plugins/DiscordStatus)
Commands
css_request - @notify members to join the server
css_update_names - Update nameformat and updating the embed with the provided argument after the command. exmaple usage: css_update_names {FLAG}{CLAN} {NAME}: {K} - {D}
css_update_settings - read and update settings from config without reloading the plugin
Features
Displaying server status on discord
Showing Country Flags
Custom Name Formatting
Sorting Players by CT and T and with their respective team colors (not working if using flags)
Sorting Players by kills
different displays on Idle, with players, with players not inlined, requesting players, offline.
Showing Connect ip:port
Embeded links directing to automatically lauch steam and joins server
Configurable update intervals to release serverloads
Automatically update config and rename the old config
Config
{
"GeneralConfig": {
"ServerIP": "77.77.77.77:27027",
"UpdateInterval": 30,
"PHPURL": "https://okand.com/connect.php"
},
"WebhookConfig": {
"NotifyMembersRoleID": 0,
"NewMapNotification": true,
"GameEndScoreboard": true,
"NotifyWebhookURL": "https://discord.com/api/webhooks/",
"RequestPlayersURL": "https://discord.com/api/webhooks/,https ... /webhooks/",
"ScoreboardURL": "https://discord.com/api/webhooks/",
"StatusWebhookURL": "https://discord.com/api/webhooks/",
"StatusMessageID": 0
},
"EmbedConfig": {
"Title": "my cs2 server",
"MapImg": "{MAPNAME}.jpg.png.gif",
"OfflineImg": ".jpg.png.gif",
"IdleImg": ".jpg.png.gif",
"RequestImg": ".jpg.png.gif",
"EmbedColor": "#00ffff",
"RandomColor": true,
"MapField": "🗺️ㅤMap",
"OnlineField": "👥ㅤOnline",
"CTField": "CT :ㅤ{SCORE}",
"TField": "T :ㅤ{SCORE}",
"MVPField": " 👑ㅤMVP ",
"NameFormat": "{FLAG}{CLAN} {NAME}: {K} - {D}",
"EmbedSteamLink": true,
"RequestPlayers": "is requesting players to join the server",
"MapChange": "Map changed to {mapname}, Join Now",
"ServerEmpty": "Server Empty",
"JoinHere": "👈 Join Here",
"PlayersInline": true
},
"ConfigVersion": 5
}
https://github.com/TianxSky/DiscordStat ... s/main.zip
Post Reply

Return to “Scripting CS2”