[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 |
Re: [CS:GO/ANY?] Discord - Map Notifications
Getting this error:
"discord_MapNotification.smx": Native "DiscordWebHook.Send" was not found Discord_api.smx is installed.. |
Re: [CS:GO/ANY?] Discord - Map Notifications
http://prntscr.com/lvucky
Interesting! We did this too haha......................................... ............. |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
When is the message sending?
|
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.
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Nice release :bacon!:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
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 |
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.
|
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 |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
Download the Deathknife's Discord API version on https://github.com/Deathknife I believe the files in the original AM post are outdated. |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
1 Attachment(s)
2+ chars
|
Re: [CS:GO/ANY?] Discord - Map Notifications
11:
#define LoopValidClients(%1) for(int %1 = 1; %1 <= MaxClients; %1++) if(IsClientValid(%1) && !IsFakeClient(%1)) |
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 |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
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. |
Re: [CS:GO/ANY?] Discord - Map Notifications
Windows or Linux?
|
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!
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
Thank you. :bacon!: |
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?
|
Re: [CS:GO/ANY?] Discord - Map Notifications
nevermind i just read the entire comment section thanks
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
Quote:
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? |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
Code:
discord_MapNotification.smx ([Discord] Map Notifications): [Map Notification] (GetLastMap) Cannot open file addons/sourcemod/configs/MapNotification_LastMap.ini |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
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:
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
I'll add a cvar to change the game |
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. |
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 |
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Could you explain how this cvar works:
PHP Code:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
Quote:
|
Re: [CS:GO/ANY?] Discord - Map Notifications
no errors but doesnt doesnt work, help?
|
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.
|
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.