esk0 / serveradvertisement3 Goto Github PK
View Code? Open in Web Editor NEWVery useful plugin for your server with which you can print messages to players. Messages are stored in file.
Very useful plugin for your server with which you can print messages to players. Messages are stored in file.
I get this error each time the plugin is supposed to print a message:
http://imgur.com/IU5K4Qg
Currently the plugin allows you to configure the time that messages will be sent to the server.
It would be interesting that in each message that the user configures for the plugin to send, they have the option to put their own time, for example.
Server sends message every 30 seconds, however I configure a message that it will be sent every 480 seconds.
I suggest to make possible of choice centered message type Hint or Alert (CS:GO)
Option for certain messages to be sent to the specific team.
I would configure a message in the configuration file and have the option team
, then I would select which team the message would go to, and only that team would see the message
Example:
[...]
"5"
{
"pt" "This message appears only for CTs"
"type" "T"
"team" "3" // 2 = TR | 3 = CT
}
"6"
{
"pt" "This message appears only for Ts"
"type" "T"
"team" "2" // 2 = TR | 3 = CT
}
CBaseEntityList::AddNonNetworkableEntity: no free slots!
CBaseEntityList::AddNonNetworkableEntity: no free slots!
CBaseEntityList::AddNonNetworkableEntity: no free slots!
L 11/17/2023 - 16:46:07: [SM] Exception reported: Entity -1 (-1) is invalid
L 11/17/2023 - 16:46:07: [SM] Blaming: base/ServerAdvertisements.smx
L 11/17/2023 - 16:46:07: [SM] Call stack trace:
L 11/17/2023 - 16:46:07: [SM] [0] DispatchKeyValue
L 11/17/2023 - 16:46:07: [SM] [1] Line 298, ServerAdvertisement/addons/sourcemod/scripting/files/misc.sp::HudMessage
L 11/17/2023 - 16:46:07: [SM] [2] Line 544, ServerAdvertisement/addons/sourcemod/scripting/ServerAdvertisements.sp::Timer_PrintMessage
L 10/27/2016 - 19:08:14: [SM] Exception reported: Config for 'Server Advertisement' not found!
L 10/27/2016 - 19:08:14: [SM] Blaming: ServerAdvertisement.smx
L 10/27/2016 - 19:08:14: [SM] Call stack trace:
L 10/27/2016 - 19:08:14: [SM] [0] SetFailState
L 10/27/2016 - 19:08:14: [SM] [1] Line 194, ServerAdvertisement.sp::LoadConfig
L 10/27/2016 - 19:08:14: [SM] [2] Line 43, ServerAdvertisement.sp::OnPluginStart
L 10/27/2016 - 19:08:14: [SM] Unable to load plugin "ServerAdvertisement.smx": Error detected in plugin startup (see error logs)
That's the problem that I have uploaded the file
Is there a way to implement the option of the font size of the text in HUD messages?
Currently it doesn't have it, in high game resolutions the message is good, but for those who play in 4:3, in lower resolutions the letters are huge.
Is it possible to add flags like the DJ Tsunami's Ads plugin?
Thanks 👍
Put more colors for messages!!!
Example:
Red
Yellow
And put more options to display the message beyond the Chat and Center put others too!!!
It would be interesting if the plugin had the automated response function.
I would set up a message in the plugin configuration file, example:
[...]
"2"
{
"pt" "Visit our Site - siteexample.com"
"type" "T"
"trigger" "!site"
}
The Trigger function would be an example of what you could use to use this function in the plugin.
I do not know if it helps but I found a plugin that does this already, but it would be perfect if you could implement it in ServerAdvertisement3.
#include <sourcemod>
public OnPluginStart()
{
RegConsoleCmd("sm_groupsteam", Command_GrupoSteam);
RegConsoleCmd("sm_discord", Command_Discord);
}
public Action Command_GrupoSteam(int client, int args)
{
if (IsValidClient(client))
PrintToChat(client, "Grupo Steam: https://steamcommunity.com/groups/LINK_GRUPOSTEAM");
}
public Action Command_Discord(int client, int args)
{
if (IsValidClient(client))
PrintToChat(client, "Discord: https://LINK_DISCORD");
}
stock bool IsValidClient(int client)
{
if (!( 1 <= client <= MaxClients ) || !IsClientInGame(client))
return false;
if (IsFakeClient(client))
return false;
return true;
}
Eveen if the nextmap hasnt been chosen yet {NEXTMAP} will still say a map, can it say pending vote.
On a nother note, can you fix workshop map names to show up correct?
Should be something like this
char mapPieces[6][128];
int lastPiece = ExplodeString(map, "/", mapPieces, sizeof(mapPieces), sizeof(mapPieces[]));
Format(map2, sizeof(map2), "%s", mapPieces[lastPiece - 1]);
Error occured:
misc.sp(462) : error 139: could not find type "EHTTPStatusCode"
misc.sp(470) : error 017: undefined symbol "SteamWorks_GetHTTPResponseBodySize"
misc.sp(476) : error 017: undefined symbol "SteamWorks_GetHTTPResponseBodyData"
Hello,
I cant use the serveradvertisement for using (danish word example: æøå)
I have try to save in UTF-8 / without BOM / and WITH BOM.
But it's write:
] sm_rcon sm plugins reload ServerAdvertisement
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/ServerAdvertisement.cfg
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/ServerAdvertisement.cfg
L 08/23/2015 - 15:24:06: [SM] Plugin encountered error 25: Call was aborted
L 08/23/2015 - 15:24:06: [SM] Native "SetFailState" reported: Config for 'Server Advertisement' not found!
L 08/23/2015 - 15:24:06: [SM] Displaying call stack trace for plugin "ServerAdvertisement.smx":
L 08/23/2015 - 15:24:06: [SM] [0] Line 193, D:\GitHub-Repository\ServerAdvertisement\scripting\ServerAdvertisement.sp::LoadConfig()
L 08/23/2015 - 15:24:06: [SM] [1] Line 36, D:\GitHub-Repository\ServerAdvertisement\scripting\ServerAdvertisement.sp::OnPluginStart()
[SM] Plugin Server Advertisement reloaded successfully.
L 02/08/2019 - 22:29:05: [SM] Exception reported: Invalid Handle 3be0327 (error: 1)
L 02/08/2019 - 22:29:05: [SM] Blaming: ServerAdvertisements3.smx
L 02/08/2019 - 22:29:05: [SM] Call stack trace:
L 02/08/2019 - 22:29:05: [SM] [0] ArrayList.Get
L 02/08/2019 - 22:29:05: [SM] [1] Line 470, D:\Desktop\unicorn\scripting\ServerAdvertisements3.sp::LoadMessages
L 02/08/2019 - 22:29:05: [SM] [2] Line 375, D:\Desktop\unicorn\scripting\ServerAdvertisements3.sp::LoadConfig
L 02/08/2019 - 22:29:05: [SM] [3] Line 57, D:\Desktop\unicorn\scripting\ServerAdvertisements3.sp::OnMapStart
Can you please make a random message feature? (like DJ Tsunami's Advertisements plugin: sm_advertisements_random — Enable/disable random advertisements. When enabled, advertisements are randomized on every map change and reload).
Very much lacking it.
In Left 4 Dead 2 almost all colors don't work, and some are mixed up in places. For example, green is displayed in orange, and lightgreen is just displayed in green.
I am using the latest version of the plugin, it works, but I get this error log on the server:
L 08/30/2019 - 13:37:57: [SM] Exception reported: Invalid Handle 21b0172 (error: 1)
L 08/30/2019 - 13:37:57: [SM] Blaming: ServerAdvertisements3.smx
L 08/30/2019 - 13:37:57: [SM] Call stack trace:
L 08/30/2019 - 13:37:57: [SM] [0] SteamWorks_GetHTTPResponseBodySize
L 08/30/2019 - 13:37:57: [SM] [1] Line 472, D:\Sourcemod\ServerAdvertisements3\files/misc.sp::SA_TrackerCallBack
SourceMod Version - Linux: 1.9.0.6281
Metamod Version - Linux: 1.10.7.971
Plugin: ServerAdvertisements3 (3.1.3) by ESK0
Add option not to send message to those who have such a flag, option ignore
, example:
"Welcome Message"
{
"Enabled" "1" // 1 = Enabled / 0 = Disabled,
"Type" "T" // Type of message - Only T and C types are supported right now
"en" "{orange}*************************************** \n{darkred}Welcome to this server {PLAYERNAME}! \n {lime}This server uses ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
"cz" "{orange}*************************************** \n{darkred}Vítej na tomto serveru {PLAYERNAME}! \n {lime}Tento server používá ServerAdvertisements3 \n Autor: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
"Delay" "5.0" // Time in seconds after is client connected to server to show message
"flags" "" // Client with this flag will get welcome message - Keep empty for all
"ignore" "a"
}
In this case it sends the message to all players, but whoever has the a
flag will not receive this message when they connect.
My apologies if I shouldn't make Plugin requests here.
I would love to see support for some common game events like on death, on round start, etc.. I don't know how difficult that would be to build in, but it could be a nice addition to an already awesome plugin.
Thank you for an amazing plugin. Again, I'm sorry if this is not the right place for this request.
It would be something like the welcome message option:
"Welcome Message"
{
"Enabled" "1" // 1 = Enabled / 0 = Disabled,
"Type" "T" // Type of message - Only T and C types are supported right now
"en" "{orange}*************************************** \n{darkred}Welcome to this server {PLAYERNAME}! \n {lime}This server uses ServerAdvertisements3 \n Author: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
"cz" "{orange}*************************************** \n{darkred}Vítej na tomto serveru {PLAYERNAME}! \n {lime}Tento server používá ServerAdvertisements3 \n Autor: {bluegrey}www.steamcommunity.com/id/esk0\n{orange}***************************************"
"Delay" "5.0" // Time in seconds after is client connected to server to show message
"flags" "" // Client with this flag will get welcome message - Keep empty for all
}
However Welcome VIP
, then only players with the flag set would see this message.
I know I could use the other message options for this, but I would like this message to appear only once for the player and when it connects to the server, the same works as Welcome Message.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.