AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO/ANY?] Discord - Map Notifications (https://forums.alliedmods.net/showthread.php?t=312817)

Bara 12-16-2018 19:01

[CS:GO/ANY?] Discord - Map Notifications
 
1 Attachment(s)
You like this plugin or my work? Support is not a crime.
https://www.paypalobjects.com/en_US/..._donate_SM.gif

Sends an message to your discord server with some informations about the current map, players online and connect link (and maybe with map image, depends on gametracker).

Installation:
Note: I didn't test this version, but the previous version worked fine (I just added Username and Color CVar and made some minor changes)

Preview:
https://bara.dev/images/discord_mapnot.png

Sourcecode
Download

Notifications 12-16-2018 20:26

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Getting this error:
"discord_MapNotification.smx": Native "DiscordWebHook.Send" was not found
Discord_api.smx is installed..

RealEdan 12-16-2018 21:45

Re: [CS:GO/ANY?] Discord - Map Notifications
 
http://prntscr.com/lvucky

Interesting! We did this too haha......................................... .............

Bara 12-17-2018 05:32

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Notifications (Post 2629504)
Getting this error:
"discord_MapNotification.smx": Native "DiscordWebHook.Send" was not found
Discord_api.smx is installed..

Make sure you have installed the correct discord plugin, it exists a few. Otherwise you should provide more informations like "sm plugins list".


Quote:

Originally Posted by RealEdan (Post 2629513)
http://prntscr.com/lvucky

Interesting! We did this too haha......................................... .............

And now? This plugins in the previous version runs on SNG over a few months now, or what you want to say me?

Trum 12-17-2018 06:38

Re: [CS:GO/ANY?] Discord - Map Notifications
 
When is the message sending?

Bara 12-17-2018 06:48

Re: [CS:GO/ANY?] Discord - Map Notifications
 
15 Seconds after the OnMapStart call and just if the current map not equal to the previous map.

plock 12-17-2018 08:13

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Nice release :bacon!:

Notifications 12-17-2018 10:23

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2629547)
Make sure you have installed the correct discord plugin, it exists a few. Otherwise you should provide more informations like "sm plugins list".




And now? This plugins in the previous version runs on SNG over a few months now, or what you want to say me?

I have a few other ones in for CallAdmin so all I did was edit the calladmin Discord.cfg.
If that’s the reason then could you add compatibility for that?
I removed the other one and left in the “Discord_API.smx” by Knife though

plock 12-17-2018 10:57

Re: [CS:GO/ANY?] Discord - Map Notifications
 
There are other plugins using the name discord.cfg(lowercase) at configs. You could change the name of your cfg to another one to avoid conflicts. I had to change mine because there would be discord.cfg and Discord.cfg.

UartigZone 01-02-2019 21:28

Re: [CS:GO/ANY?] Discord - Map Notifications
 
I get this error - CS:GO - Windows Server
[SM] Unable to load plugin "discord_MapNotification.smx": Native "DiscordWebHook.Send" was not found

Code:

"Admin File Reader" (1.9.0.6269) by AlliedModders LLC
 "Admin Help" (1.9.0.6269) by AlliedModders LLC
 "Admin List" (1.2) by Fredd
 "Admin Menu" (1.9.0.6269) by AlliedModders LLC
 "Anti Duck/Jump Spam" (1.0.2) by Bara
 "Anti-Flood" (1.9.0.6269) by AlliedModders LLC
 "Auth RetVal Checker" (1.1) by JoinedSenses
 "Basic Ban Commands" (1.9.0.6269) by AlliedModders LLC
 "Basic Chat" (1.9.0.6269) by AlliedModders LLC
 "Basic Comm Control" (1.9.0.6269) by AlliedModders LLC
 "Basic Commands" (1.9.0.6269) by AlliedModders LLC
 "Basic Info Triggers" (1.9.0.6269) by AlliedModders LLC
 "Basic Votes" (1.9.0.6269) by AlliedModders LLC
 "Button Watcher" (1.1) by Franc1sco franug
 "Client Preferences" (1.9.0.6269) by AlliedModders LLC
 "Connect MSG" (1.0) by Crazy
 "Country Tag" (1.12) by Hejter & Danyas
 "[Store] Credits for specified events" (1.14) by Cruze
 "Flashlight" (1.3.63) by Mitch
 "CS:GO Movement Unlocker" (1.0) by Peace-Maker
 "Custom Votes" (1.15U) by ReFlexPoison,Anonymous Player
 "Force AllTalk" (1.1) by Nickelony
 "SM Unlimited Reserve Ammo" (1.0) by Franc1sco franug
 "Fun Commands" (1.9.0.6269) by AlliedModders LLC
 "Fun Votes" (1.9.0.6269) by AlliedModders LLC
 "RankMe" (3.0.3.Kento.30.2) by lok1, Scooby, Kento, pracc, Kxnrl, CrazyHackGUT
 "MapChooser" (1.9.0.6269) by AlliedModders LLC
 "Map configs" (1.3) by Berni
 "CSGO Panorama Map Change Crashe Fixer" (1.0.6) by BOT Benson
 "SM Franug Name Reward" (1.0) by Franc1sco franug
 "Nextmap" (1.9.0.6269) by AlliedModders LLC
 "No Block" (1.0.0.0) by sslice
 "Map Nominations" (1.9.0.6269) by AlliedModders LLC
 "Player Commands" (1.9.0.6269) by AlliedModders LLC
 "Radio Spam Block" (1.0.1csgofix) by exvel,TonyBaretta
 "In-game Help Menu 2" (0.3 Playa edit) by chundo
 "Reserved Slots" (1.9.0.6269) by AlliedModders LLC
 "Rock The Vote" (1.9.0.6269) by AlliedModders LLC
 "ServerAdvertisements3" (3.1.3) by ESK0
 "Simple Chat Processor (Redux)" (2.1.0) by Simple Plugins, Mini
 "Smart URL Remover" (1.6.2) by Totenfluch [Fix by Agent Wesker]
 "[CSGO] Advanced Admin" (1.5.8) by PeEzZ
 "SM File/Folder Downloader and Precacher" (1.4) by SWAT_88
 "Sound Commands" (1.9.0.6269) by AlliedModders LLC
 "Stop Map Music" (1.0.0) by GoD-Tony
 "Store - The Resurrection" (1.1) by Zephyrus
 "Thirdperson | Mirrow Mode" (1.11) by Zephyrus
 "Toggle Music" (3.7.8) by Mitch & Agent Wesker
 "Toggle Weapon Sounds clientprefs" (1.0.3 fix m_iWeaponID + new syntax) by GoD-Tony
 "Too Late To Ban" (1.0.0a) by Shenton
 "Very Basic High Ping Kicker" (1.4) by msleeper
 "Admin List2" (1.2) by Fredd
 "zephyrus-coinflip" (1.0.3) by siimon
 "Zombie:Reloaded" (3.3.2 Franug edition) by Greyscale | Richard Helgeby and Franc1sco franug
 "ZR Class Fix" (2.1) by Franc1sco franug
 "ZR Custom CS:GO Arms" (5.0) by Franc1sco franug
 "[ZR] Grenade Effects" (2.0) by FrozDark (HLModders.ru LLC)
 "ZR Repeat Kill Detector" (1.0.2) by GoD-Tony
 "ZR Tagging" (1.2) by Agent Wesker & Rules of _P
 "zspawn.smx" zspawn.smx
 "Discord API" (0.1.12) by Deathknife


Hallucinogenic Troll 01-03-2019 11:25

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by UartigZone (Post 2632506)
I get this error - CS:GO - Windows Server
[SM] Unable to load plugin "discord_MapNotification.smx": Native "DiscordWebHook.Send" was not found

Code:

"Admin File Reader" (1.9.0.6269) by AlliedModders LLC
 "Admin Help" (1.9.0.6269) by AlliedModders LLC
 "Admin List" (1.2) by Fredd
 "Admin Menu" (1.9.0.6269) by AlliedModders LLC
 "Anti Duck/Jump Spam" (1.0.2) by Bara
 "Anti-Flood" (1.9.0.6269) by AlliedModders LLC
 "Auth RetVal Checker" (1.1) by JoinedSenses
 "Basic Ban Commands" (1.9.0.6269) by AlliedModders LLC
 "Basic Chat" (1.9.0.6269) by AlliedModders LLC
 "Basic Comm Control" (1.9.0.6269) by AlliedModders LLC
 "Basic Commands" (1.9.0.6269) by AlliedModders LLC
 "Basic Info Triggers" (1.9.0.6269) by AlliedModders LLC
 "Basic Votes" (1.9.0.6269) by AlliedModders LLC
 "Button Watcher" (1.1) by Franc1sco franug
 "Client Preferences" (1.9.0.6269) by AlliedModders LLC
 "Connect MSG" (1.0) by Crazy
 "Country Tag" (1.12) by Hejter & Danyas
 "[Store] Credits for specified events" (1.14) by Cruze
 "Flashlight" (1.3.63) by Mitch
 "CS:GO Movement Unlocker" (1.0) by Peace-Maker
 "Custom Votes" (1.15U) by ReFlexPoison,Anonymous Player
 "Force AllTalk" (1.1) by Nickelony
 "SM Unlimited Reserve Ammo" (1.0) by Franc1sco franug
 "Fun Commands" (1.9.0.6269) by AlliedModders LLC
 "Fun Votes" (1.9.0.6269) by AlliedModders LLC
 "RankMe" (3.0.3.Kento.30.2) by lok1, Scooby, Kento, pracc, Kxnrl, CrazyHackGUT
 "MapChooser" (1.9.0.6269) by AlliedModders LLC
 "Map configs" (1.3) by Berni
 "CSGO Panorama Map Change Crashe Fixer" (1.0.6) by BOT Benson
 "SM Franug Name Reward" (1.0) by Franc1sco franug
 "Nextmap" (1.9.0.6269) by AlliedModders LLC
 "No Block" (1.0.0.0) by sslice
 "Map Nominations" (1.9.0.6269) by AlliedModders LLC
 "Player Commands" (1.9.0.6269) by AlliedModders LLC
 "Radio Spam Block" (1.0.1csgofix) by exvel,TonyBaretta
 "In-game Help Menu 2" (0.3 Playa edit) by chundo
 "Reserved Slots" (1.9.0.6269) by AlliedModders LLC
 "Rock The Vote" (1.9.0.6269) by AlliedModders LLC
 "ServerAdvertisements3" (3.1.3) by ESK0
 "Simple Chat Processor (Redux)" (2.1.0) by Simple Plugins, Mini
 "Smart URL Remover" (1.6.2) by Totenfluch [Fix by Agent Wesker]
 "[CSGO] Advanced Admin" (1.5.8) by PeEzZ
 "SM File/Folder Downloader and Precacher" (1.4) by SWAT_88
 "Sound Commands" (1.9.0.6269) by AlliedModders LLC
 "Stop Map Music" (1.0.0) by GoD-Tony
 "Store - The Resurrection" (1.1) by Zephyrus
 "Thirdperson | Mirrow Mode" (1.11) by Zephyrus
 "Toggle Music" (3.7.8) by Mitch & Agent Wesker
 "Toggle Weapon Sounds clientprefs" (1.0.3 fix m_iWeaponID + new syntax) by GoD-Tony
 "Too Late To Ban" (1.0.0a) by Shenton
 "Very Basic High Ping Kicker" (1.4) by msleeper
 "Admin List2" (1.2) by Fredd
 "zephyrus-coinflip" (1.0.3) by siimon
 "Zombie:Reloaded" (3.3.2 Franug edition) by Greyscale | Richard Helgeby and Franc1sco franug
 "ZR Class Fix" (2.1) by Franc1sco franug
 "ZR Custom CS:GO Arms" (5.0) by Franc1sco franug
 "[ZR] Grenade Effects" (2.0) by FrozDark (HLModders.ru LLC)
 "ZR Repeat Kill Detector" (1.0.2) by GoD-Tony
 "ZR Tagging" (1.2) by Agent Wesker & Rules of _P
 "zspawn.smx" zspawn.smx
 "Discord API" (0.1.12) by Deathknife



Download the Deathknife's Discord API version on https://github.com/Deathknife

I believe the files in the original AM post are outdated.

UartigZone 01-03-2019 14:03

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Hallucinogenic Troll (Post 2632580)
Download the Deathknife's Discord API version on https://github.com/Deathknife

I believe the files in the original AM post are outdated.

Ty! But can't make a .smx .... Have been trying

Bara 01-03-2019 18:39

Re: [CS:GO/ANY?] Discord - Map Notifications
 
1 Attachment(s)
2+ chars

AK978 01-03-2019 21:49

Re: [CS:GO/ANY?] Discord - Map Notifications
 
11:

#define LoopValidClients(%1) for(int %1 = 1; %1 <= MaxClients; %1++) if(IsClientValid(%1) && !IsFakeClient(%1))

AK978 01-03-2019 21:59

Re: [CS:GO/ANY?] Discord - Map Notifications
 
//autoexecconfig.inc
https://github.com/Impact123/AutoExe...execconfig.inc

//SteamWorks
http://users.alliedmods.net/~kyles/builds/SteamWorks/

//smjansson.ext
https://github.com/thraaawn/SMJansson/tree/master/bin

UartigZone 01-04-2019 00:48

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2632683)
2+ chars

Working perfect now! You're the best. Thanks!

SHOUBI 09-29-2019 17:40

Re: [CS:GO/ANY?] Discord - Map Notifications
 
2 Attachment(s)
spend whole day trying to get it working on linux server:

ERRORS IN sourcemod/logs file only so far:

httpclient.cpp (2646) : Assertion Failed: pHost && *pHost
httpclient.cpp (2646) : Assertion Failed: pHost && *pHost
[discord_api.smx] [DISCORD] Couldn't Send Webhook - Fail 0 0

Discord webhook i've try one which already been used previously n worked, and created a new one as well both failed.

Attached are files i've been using so far + logs status and server setting plugins list and version of SM/MM

I've try also disabling all related discord plugin issue still reamaining.

Bara 09-30-2019 09:19

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Windows or Linux?

SHOUBI 11-05-2019 07:59

Re: [CS:GO/ANY?] Discord - Map Notifications
 
2 Attachment(s)
i got it working by editing the sp, config file is named Discord_notif now and it worked!

Bara 11-05-2019 11:50

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by SHOUBI (Post 2672052)
i got it working by editing the sp, config file is named Discord_notif now and it worked!

You need to upload the sourcecode too.

paulo_crash 04-14-2020 17:05

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2629494)

How can I do to place the maps that do not show in the message?

Bara 04-14-2020 19:01

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by paulo_crash (Post 2693425)
How can I do to place the maps that do not show in the message?

Not possible, it use gametracker for map images.

paulo_crash 04-14-2020 19:35

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2693443)
Not possible, it use gametracker for map images.

In this case, only send the maps on GameTracker. I started sending prints of the maps that are missing for me.

Thank you. :bacon!:

rehashmusic 04-16-2020 00:21

Re: [CS:GO/ANY?] Discord - Map Notifications
 
I already have a discord.cfg in my configs folder, for a call-admin module.. if i rename your file will it mess anything up?

rehashmusic 04-16-2020 00:30

Re: [CS:GO/ANY?] Discord - Map Notifications
 
nevermind i just read the entire comment section thanks

paulo_crash 04-16-2020 08:49

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by rehashmusic (Post 2693749)
I already have a discord.cfg in my configs folder, for a call-admin module.. if i rename your file will it mess anything up?

Quote:

Originally Posted by rehashmusic (Post 2693750)
nevermind i just read the entire comment section thanks

Yes, it solved by capitalizing on this conflict problem with other plugins. But I would have a suggestion, I believe it will be even better.

It would send configuration files from the config folder into another folder, that is, /configs/DMN/.

Or even start the file names with a prefix, say DMN_LastMap.ini and DMN_Discord.cfg.

Would it be possible @Bara?

killerroi 04-18-2020 03:51

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by paulo_crash (Post 2693813)
Yes, it solved by capitalizing on this conflict problem with other plugins. But I would have a suggestion, I believe it will be even better.

It would send configuration files from the config folder into another folder, that is, /configs/DMN/.

Or even start the file names with a prefix, say DMN_LastMap.ini and DMN_Discord.cfg.

Would it be possible @Bara?

Can you add me on discord and help me with this? KillerRoi#3473

Bara 07-17-2020 08:16

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by paulo_crash (Post 2693813)
Or even start the file names with a prefix, say DMN_LastMap.ini and DMN_Discord.cfg.

Done.

paulo_crash 07-17-2020 11:46

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2710465)

The plugin needed to be compiled with GitHub changes.
Code:

discord_MapNotification.smx ([Discord] Map Notifications): [Map Notification] (GetLastMap) Cannot open file addons/sourcemod/configs/MapNotification_LastMap.ini

Bara 07-17-2020 11:50

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by paulo_crash (Post 2710488)
The plugin needed to be compiled with GitHub changes.

Ups... my fault, compiled with the wrong task.

whiteskypony 07-21-2020 23:16

Re: [CS:GO/ANY?] Discord - Map Notifications
 
https://i.imgur.com/plVWSEr.png


How should i edit the plugin to target tf2 related map images on gametracker?

Quote:

Format(sThumb, sizeof(sThumb), "https://image.gametracker.com/images/maps/160x120/csgo/%s.jpg", sMap);
To?
Quote:

Format(sThumb, sizeof(sThumb), "https://image.gametracker.com/images/maps/160x120/tf2/%s.jpg", sMap);

Bara 07-22-2020 05:38

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by whiteskypony (Post 2711098)
https://i.imgur.com/plVWSEr.png


How should i edit the plugin to target tf2 related map images on gametracker?


To?

Correct, as example: https://image.gametracker.com/images.../ctf_2fort.jpg

I'll add a cvar to change the game

paulo_crash 07-22-2020 06:44

Re: [CS:GO/ANY?] Discord - Map Notifications
 
@Bara could you make the plugin update the map image you send in Discord if the map image is changed in GameTracker?

There are some that even having the map image in GameTracker the plugin sends the message without an image.

DoPe^ 08-07-2020 09:27

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Hey @Bara, is it possible so if you use a workshop map to make it strip the folder and workshop id from the name?
Right now it looks like this
https://i.imgur.com/VxkD6Al.png

Bara 08-07-2020 13:40

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by DoPe^ (Post 2713371)
Hey @Bara, is it possible so if you use a workshop map to make it strip the folder and workshop id from the name?
Right now it looks like this
https://i.imgur.com/VxkD6Al.png

Done.

paulo_crash 08-07-2020 14:26

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Could you explain how this cvar works:

PHP Code:

// Which language (as 2 or 3 digit code) for discord messages?
// Here's a list of some/all languages codes:
// [url]https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes[/url]
discord_map_notification_language_code "en" 

Even leaving default messages are sent in my language, "pt", but if you put PT in the cvar it does not send the messages in the discord.

DoPe^ 08-07-2020 20:45

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Quote:

Originally Posted by Bara (Post 2713415)
Done.

Awesome! thank you so much

loko15 11-24-2020 13:50

Re: [CS:GO/ANY?] Discord - Map Notifications
 
no errors but doesnt doesnt work, help?

Bara 01-05-2021 19:02

Re: [CS:GO/ANY?] Discord - Map Notifications
 
I've uploaded now the discord_api.smx as well, since it makes a lot of errors with older discord_api versions.

Blur11602 01-11-2021 11:08

Re: [CS:GO/ANY?] Discord - Map Notifications
 
Hi Bara, i was wondering how to install Steamworks and smjansson, as there are no instructions for smjansson and (for steamworks) i do not know what files to extract and where.
Any help would be greatly appreciated :)

BLUR


All times are GMT -4. The time now is 00:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.