Git Product home page Git Product logo

serveradvertisement3's People

Contributors

adrianilloo avatar crashzk avatar esk0 avatar maxime1907 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

serveradvertisement3's Issues

Improvements in the message sending time function

Currently the plugin allows you to configure the time that messages will be sent to the server.

"Time" "30.0" // Time in seconds

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.

Message only for certain team

Option for certain messages to be sent to the specific team.

HOW IT WILL WORK

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
    }

Exception reported: Entity -1 (-1) is invalid

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

Config for 'Server Advertisement' not found!

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

https://zapodaj.net/images/1d083e2cffec7.png

Implement option to change font size of HUD messages

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.

[Request] Flags

Is it possible to add flags like the DJ Tsunami's Ads plugin?

Thanks 👍

Update Suggested!!!

Put more colors for messages!!!

Example:
Red
Yellow

And put more options to display the message beyond the Chat and Center put others too!!!

Automated response

It would be interesting if the plugin had the automated response function.

HOW IT WILL WORK

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.

EXAMPLE OF A PLUGIN WITH THE FOLLOWING FUNCTION

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;
}

Nextmap always has a map name/workshop fix

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]);

Can't compile last version on Linux (1.8 stable/1.9 dev)

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" 

UTF-8 ?

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.

ArrayList

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

[Request] Messages in random order.

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.

Error - SteamWorks_GetHTTPResponseBodySize

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

Implement option to ignore flag in Welcome Message

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.

[Request] Message triggers

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.

Implement Message Welcome VIP

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.