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

[L4D2]Advertisement plugin for Left 4 dead 2


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Darkwob
BANNED
Join Date: Oct 2018
Old 09-21-2020 , 18:08   [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #1

Hey, guys, I need an ad plugin for left 4 dead 2. All ad plugins developed, left 4 dead 2 also does not support many colors, have I written a plugin for left 4 dead 2 or have one in your hand ?

Colors not generally supported.

Orange
Red
blue
lightblue
purple
etc

only support five chat colors: {default}, {teamcolor}, {green}, {lightgreen} and {yellow}.

Last edited by Darkwob; 09-21-2020 at 18:10.
Darkwob is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-21-2020 , 20:10   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=155705
__________________
Silvers is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-21-2020 , 22:04   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
I have tried this and the same problem in this 5 color does not support others outside.
Darkwob is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-21-2020 , 22:42   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #4

It does work and always has, you must be using it wrong. Look at the source. https://github.com/ErikMinekus/sm-ad.../chatcolors.sp

PHP Code:
        case Engine_Left4DeadEngine_Left4Dead2: {
            
AddChatColor("lightgreen""\x03");
            
AddChatColor("yellow""\x04");
            
AddChatColor("green""\x05");
        } 
__________________
Silvers is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-22-2020 , 01:29   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #5

Quote:
Originally Posted by Silvers View Post
It does work and always has, you must be using it wrong. Look at the source. https://github.com/ErikMinekus/sm-ad.../chatcolors.sp

PHP Code:
        case Engine_Left4DeadEngine_Left4Dead2: {
            
AddChatColor("lightgreen""\x03");
            
AddChatColor("yellow""\x04");
            
AddChatColor("green""\x05");
        } 
is there anything wrong here ?

PHP Code:
"Advertisements"
{
    }
    
"1"
    
{
        
"chat"   "{blue}Facebook:  {default}www.facebook.com/groups/regionz"
    
}
    
"2"
    
{
        
"chat"   "{blue}Discord:  {default}discord.me/regionz"
    
}
    
"3"
    
{
        
"chat"   "{lightgreen}you can buy {lightgreen}items by typing {yellow}!buy."
    
}
    
"4"
    
{
        
"chat"   "{green}STEAM GROUP:{lightgreen}steamcommunity.com/groups/regionzversus"
    
}
    
"5"
    
{
        
"chat"   "{orange}SERVER İP:{yellow}regionz.ddns.net:27206"
    

Darkwob is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-22-2020 , 02:59   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #6

Well for starters you have } closing bracket straight after opening so nothing is read after that, it should be at the bottom, not where it is.
__________________

Last edited by Silvers; 09-22-2020 at 02:59.
Silvers is offline
Darkwob
BANNED
Join Date: Oct 2018
Old 09-22-2020 , 03:42   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #7

Quote:
Originally Posted by Silvers View Post
Well for starters you have } closing bracket straight after opening so nothing is read after that, it should be at the bottom, not where it is.
can you show me an example configuration?
Darkwob is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 09-22-2020 , 11:07   Re: [L4D2]Advertisement plugin for Left 4 dead 2
Reply With Quote #8

Dark always check where the brackets ( { / } ) "open" and "close"
You can check that easily with Notepad++.

Code:
"Advertisements"
{
    "1"
    {
        "chat"   "{blue}Facebook:  {default}www.facebook.com/groups/regionz"
    }
    "2"
    {
        "chat"   "{blue}Discord:  {default}discord.me/regionz"
    }
    "3"
    {
        "chat"   "{lightgreen}you can buy {lightgreen}items by typing {yellow}!buy."
    }
    "4"
    {
        "chat"   "{green}STEAM GROUP:{lightgreen}steamcommunity.com/groups/regionzversus"
    }
    "5"
    {
        "chat"   "{orange}SERVER İP:{yellow}regionz.ddns.net:27206"
    }
}
__________________

Last edited by Marttt; 09-22-2020 at 11:07.
Marttt 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 08:35.


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