Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

[ANY] Discord Notification (Join, Ban, Disconnect, Map, Kills, Chat)


MYGO.pl
 Udostępnij

Rekomendowane odpowiedzi

  • RSSy
About
Send notification on a discord channel when a player join, disconnect, get banned and when the map start.
Discord A.P.I from Deathknife

Features
  • Player Connection Logging
  • Player Disconnect Logging
  • Player Ban Logging
  • SourceBans Bans support (separated, required SourceBans)
  • SourceBans Report support (separated, required SourceBans)
  • When a Ban its removed
  • Players Chatting Logging(Enable or Disable by Cvar(discord_messages))
  • Map Change Logging
  • Auth informations Logging(Enable or Disable by Cvar(discord_auth))
  • Who killed who loggin(Enable or Disable by Cvar(discord_killedby))
  • Mute or Unmute Logging
  • Gag or Ungag Loggin
  • Embed or Normal notification added
  • Translations in 4 languages(English, French, Romanian, Korean)

Example of notifications
Normal
68747470733a2f2f696d6167652e6e6f656c7368
Embed
68747470733a2f2f696d6167652e6e6f656c7368

Requires:
SteamWorks

Installation
Add your WebHook URL to discord_notification.cfg(File created after first launch of the plugin).
WebHook URL can be created in your channel settings on discord.

discord_api.smx -> addons/sourcemod/plugins/
discord_notification.smx -> addons/sourcemod/plugins/
discord_sourcebans.smx -> addons/sourcemod/plugins/
discord_notification.phrases -> addons/sourcemod/translations/

Download:
https://github.com/Benito1020/discor...ive/master.zip

discord_notification.cfg
Quote:

// Default webhook for sending logs, see discord.cfg for the webhook name
// -
// Default: "<WEBHOOK_URL_HERE>"
discord_webhook "<WEBHOOK_URL_HERE>"

// 1 = Enabled / 0 = Disabled retrieves the players messages on discord.
// -
// Default: "1"
discord_messages "1"

// 1 = Enabled / 0 = Disabled retrieves the players steamid and ip on discord.
// -
// Default: "1"
discord_auth "1"

// 1 = Enabled / 0 = Disabled retrieves the killer and the victim of a kill.
// -
// Default: "1"
discord_killedby "1"

// 1 = Send embed's notifications / 0 = Send normal notification.
// -
// Default: "1"
discord_embed "1"
Changelog
Quote:

  • Added SourceBans support
  • Added server chat logging
  • Added log when a ban is removed from the banlist
  • Added player IP & SteamID.
  • Fixed Say() function.
  • Added cvar for enabling or disabling auth client logging.
  • Added cvar for enabling or disabling kills logging.
  • Added Mute and gag status loggin.
  • Removed discord support from zipcore and added Discord api libraby from Deathknife.
  • Fixed kill message.
  • Added cvar for enable embed or normal discord notification.

Wyświetl pełny artykuł

Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

×
×
  • Dodaj nową pozycję...