Raised This Month: $51 Target: $400
 12% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-09-2013 , 20:37   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1581

Quote:
Originally Posted by kingpin11 View Post
HI

after update i have only white ads
I use csgo with last sm and mm Snapshot



What must i do ?

many thx
Hello,

My first post, as I just registered in hopes this would help someone.
I started using this plugin for my server and had the same problem, so troubleshooting I went.

The cause of this is by starting the text with a color, you can't start with any color for the first word, if added after the initial word, you are good to go.

Code:
    "2"
    {
        "type"        "S"
        "text"        "Type{GREEN} rtv {DEFAULT}to change the map!"
    }
    "3"
    {
        "type"        "S"
        "text"        "Join our {GREEN} Deathmatch{DEFAULT} Server:{GREEN} 0.0.0.0"
    }
    "4"
    {
        "type"        "S"
        "text"        "{DEFAULT}{GREEN} Join our Scoutzknivez Server: {DEFAULT}0.0.0.0"
    }
In bold is what you SHOULD NOT do until there is a fix. I am looking at the source code now, but I am sure DJ Tsunami will beat me to it.

EDIT: After some more testing I have found that the only working colors are: Green, Team and White.
Blue, Pink, Yellow and etc. are not working in any method that I have tried.

Last edited by Maxximou5; 02-09-2013 at 23:26. Reason: Update
Maxximou5 is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 02-18-2013 , 14:36   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1582

how do I only have the Msay ad (#6) display only once every 8 mins?

Code:
// Advertisements 0.5
// by Tsunami
// 
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
//    - Colors:  {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
//    - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
//    - Colors:  {WHITE},  {RED},  {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
//               {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
//    - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
"1"
{
"type" "S"
"text" "{DEFAULT}{GREEN}>>Remember to add this server to your Favorites{DEFAULT} 64.94.101.208:27015"
}
"2"
{
"type" "S"
"text" "{DEFAULT}{GREEN}>>Type {DEFAULT}RTV {DEFAULT}{GREEN}to start a map vote, type {DEFAULT}NOMINATE{DEFAULT}{GREEN} to see the maplist"
}
"3"
{
"type" "S"
"text" "{DEFAULT}{GREEN}>>Buy Admin for $7/month at {DEFAULT}SlayersGaming.com"
}
"4"
{
"type" "S"
"text" "{DEFAULT}{GREEN}>>Type {DEFAULT}!RTD {DEFAULT}{GREEN}to Roll the Dice"
}
"5"
{
"type" "S"
"text" "{DEFAULT}{GREEN}>>Type {DEFAULT}!rules {DEFAULT}{GREEN}to view the server rules"
}

"6"
{
"type" "M"
"text" "Buy Admin(VIP) for $7/month and also get Custom skins + 500 rpg credits + Jetpack + Admin chat colors"
}

}
__________________
PresidentEvil is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-18-2013 , 23:20   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1583

Question/Suggestion: I'm thinking of coding in usability of MoreColors.inc for this. Has this already been done? I'd love to be able to use more colors in the advertisements, but I'm just not 100% sure of how to add it in, aside from #include <morecolors>

Last edited by 404UserNotFound; 02-19-2013 at 00:14.
404UserNotFound is offline
redf0x
AlliedModders Donor
Join Date: Jan 2013
Location: NE
Old 02-19-2013 , 07:44   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1584

hmm... my colors are not showing up whatsoever. Would anyone happen to have an idea why?
redf0x is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-19-2013 , 10:48   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1585

Quote:
Originally Posted by abrandnewday View Post
Question/Suggestion: I'm thinking of coding in usability of MoreColors.inc for this. Has this already been done? I'd love to be able to use more colors in the advertisements, but I'm just not 100% sure of how to add it in, aside from #include <morecolors>
morecolors.inc only supports a few games, so at the present time colors.inc is the only way to have compatibility with all major Source branches.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 02-19-2013 , 13:52   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1586

Quote:
Originally Posted by Powerlord View Post
morecolors.inc only supports a few games, so at the present time colors.inc is the only way to have compatibility with all major Source branches.
Well I know that, but I do believe there is a way to detect if the game is TF2, and if so, enable the utilization of MoreColors.inc.

Either that, or I guess I can just easily go into the source code and modify the following lines:

PHP Code:
static g_iTColors[13][3] = { {255255255}, {25500}, {02550}, {00255}, {2552550}, {2550255}, {0255255}, {2551280}, {2550128}, {1282550}, {0255128}, {1280255}, {0128255} };
static 
String:g_sTColors[13][12] = { "{WHITE}""{RED}""{GREEN}""{BLUE}""{YELLOW}""{PURPLE}""{CYAN}""{ORANGE}""{PINK}""{OLIVE}""{LIME}""{VIOLET}""{LIGHTBLUE}" }; 
And just add in a new "{0, 128, 255}" and "{COLORNAME}" to both, then add in "#include <morecolors.inc>" at the top. Hell, if I modify the RGB values, I might not even need morecolors.inc

Either way, this should be implemented (or at least have the creator of this create a "TF2-specific, MoreColors.inc-using" version of this plugin)
404UserNotFound is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-19-2013 , 15:08   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1587

Quote:
Originally Posted by abrandnewday View Post
Well I know that, but I do believe there is a way to detect if the game is TF2, and if so, enable the utilization of MoreColors.inc.

Either that, or I guess I can just easily go into the source code and modify the following lines:

PHP Code:
static g_iTColors[13][3] = { {255255255}, {25500}, {02550}, {00255}, {2552550}, {2550255}, {0255255}, {2551280}, {2550128}, {1282550}, {0255128}, {1280255}, {0128255} };
static 
String:g_sTColors[13][12] = { "{WHITE}""{RED}""{GREEN}""{BLUE}""{YELLOW}""{PURPLE}""{CYAN}""{ORANGE}""{PINK}""{OLIVE}""{LIME}""{VIOLET}""{LIGHTBLUE}" }; 
And just add in a new "{0, 128, 255}" and "{COLORNAME}" to both, then add in "#include <morecolors.inc>" at the top. Hell, if I modify the RGB values, I might not even need morecolors.inc

Either way, this should be implemented (or at least have the creator of this create a "TF2-specific, MoreColors.inc-using" version of this plugin)
.inc file are resolved at compile time. Since colors and morecolors have identically named functions, you can't include both in the same plugin. So, someone would have to create a separate version.

Besides which, since when do non-Source 2009 games support RGB colors in their messages?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-19-2013 at 15:13.
Powerlord is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 02-19-2013 , 18:33   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1588

The quoted code is for top-left messages, I'm pretty sure most if not all games support RGB in there. For chat messages it's a different story as you mentioned.

Advanced Advertisements by minimoney1 does support colors and morecolors as 2 separate plugins, but I believe it's still undergoing a rewrite. As for this plugin, I've been ill, but once I get better I intend to address the minor bugs in 0.6, and when I have more time look into colors/morecolors and other expansions. SourceBans is a bigger priority though, so we'll see.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
itscaz
Junior Member
Join Date: Feb 2013
Old 02-24-2013 , 10:12   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1589

Quote:
Originally Posted by Maxximou5 View Post
Hello,

My first post, as I just registered in hopes this would help someone.
I started using this plugin for my server and had the same problem, so troubleshooting I went.

The cause of this is by starting the text with a color, you can't start with any color for the first word, if added after the initial word, you are good to go.

Code:
    "2"
    {
        "type"        "S"
        "text"        "Type{GREEN} rtv {DEFAULT}to change the map!"
    }
    "3"
    {
        "type"        "S"
        "text"        "Join our {GREEN} Deathmatch{DEFAULT} Server:{GREEN} 0.0.0.0"
    }
    "4"
    {
        "type"        "S"
        "text"        "{DEFAULT}{GREEN} Join our Scoutzknivez Server: {DEFAULT}0.0.0.0"
    }
In bold is what you SHOULD NOT do until there is a fix. I am looking at the source code now, but I am sure DJ Tsunami will beat me to it.

EDIT: After some more testing I have found that the only working colors are: Green, Team and White.
Blue, Pink, Yellow and etc. are not working in any method that I have tried.
Is this still the case? I have just changed server provider and the adds were working in color on my old host but not my new one.
itscaz is offline
Onkor
Junior Member
Join Date: Sep 2006
Old 02-24-2013 , 18:49   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1590

I have a problem with the display. I attach a screenshot.
Text must drop a little lower.
Attached Thumbnails
Click image for larger version

Name:	01.jpg
Views:	480
Size:	86.0 KB
ID:	116320  
Onkor is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09.


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