Raised This Month: $ Target: $400
 0% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
atticusmas
Senior Member
Join Date: Jul 2011
Location: I am a hallucination
Plugin ID:
306
Plugin Version:
2.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Display advertisements.
    Old 09-03-2011 , 18:14   Re: Advertisements 0.5.5
    Reply With Quote #1

    L 09/03/2011 - 15:07:14: [simple-chatcolors.smx] [SCC] Detected [Team Fortress 2].
    KeyValues Error: RecursiveLoadFromBuffer: got EOF instead of keyname in file addons\sourcemod\configs\advertisements.txt
    Advertisements, 4,
    Ads=Broken.

    Cfg file:
    Code:
    "Advertisements"
    {
    	"1"
    	{
    		"type"		"S"
    		"text"		"Visit TethysCraft.net It is our website"
    		"flags"       "a"
    	}
    	"2"
    	{
    		"type"		"S"
    		"text"		"{GREEN}Forums at http://www.tethyscraft.smfnew.com/"
    		"flags"       "a"
    	}
    	"3"
    	{
    		"type"		"S"
    		"text"		"Please consider donating. You do get perks."
    		"flags"       "a"
    		
    	}
    	"4"
    	{
    		"type"		"S"
    		"text"		"Ban appeals on forum
    		
    	}
    	
    	
    }
    __________________
    <a href="http://www.gametracker.com/server_info/8.6.15.53:27015/" target="_blank"><img src="http://cache.www.gametracker.com/server_info/8.6.15.53:27015/b_560_95_1.png" border="0" width="560" height="95" alt=""/></a>
    atticusmas is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 09-04-2011 , 01:15   Re: Advertisements 0.5.5
    Reply With Quote #2

    Don't use "flags" man. You want to show this advertisements for all players.
    And don't forget the last " from the last advert.
    And i think must be given the color of the advertisements.

    Your version:
    Code:
            "text"        "Ban appeals on forum
    Right version:
    Code:
            "text"        "{GREEN} Ban appeals on forum"

    Last edited by blue zebra; 09-04-2011 at 01:39.
    blue zebra is offline
    Splinti
    New Member
    Join Date: Sep 2011
    Old 09-04-2011 , 01:37   Re: Advertisements 0.5.5
    Reply With Quote #3

    HI, i have a problem

    i want to make 2 colors in 1 text... does that work???
    my advertisement.txt:

    Code:
    "Advertisements"
    {
        "1"
        {
            "type"        "S"
            "text"        "{GREEN}You want Info? Send me an E-Mail!\n {RED}[email protected]"
        }
        "2"
        {
            "type"        "T"
            "text"        "{GREEN}www.craftnbuild.de\n {RED}It's not finished!"
            "flags"       "a"
        }
    }
    Splinti is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 09-04-2011 , 02:11   Re: Advertisements 0.5.5
    Reply With Quote #4

    First. Whitch game? I have only CSS servers. So i can test this only on the CSS.
    In CSS the two color in one advert don't work in the top left ( "T" ) adverts. It's 100%.
    Your top left message would be too long. I think the top left message are max. 23 or 25 characters.
    In the chat adverts ( "S" ) works well with different colors, but in the CSS the {RED} don't work. USE these colors:

    Adverts is the chat window ( "S" )
    "It supports the following colors: {DEFAULT}, {TEAM}, {GREEN} and {LIGHTGREEN}. {TEAM} and {LIGHTGREEN} unfortunately don't work together in a single advertisement, so it's one or the other. For example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
    And don't use the flags.

    Example:
    Code:
    "Advertisements"
    {
        "1"
        {
            "type"        "S"
            "text"        "{GREEN}You want Info? Send me an E-Mail!\n {TEAM}[email protected]"
        }
        "2"
        {
            "type"        "S"
            "text"        "{GREEN}www.craftnbuild.de\n {TEAM}It's not finished!"
        }
    }

    Last edited by blue zebra; 09-04-2011 at 02:20.
    blue zebra is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 09-04-2011 , 05:05   Re: Advertisements 0.5.5
    Reply With Quote #5

    This plugin still not works with the east europen characters.
    Example: í é á ő ú ű
    Anyone can fix this "error"? Please.


    Example:
    Code:
    "Advertisements"
    {
        "1"
        {
            "type"        "S"
            "text"        "{GREEN}Más játékosok mocskolásáért bant fogsz kapni"
        }
    }
    When i try to use this txt file, i got this error message:
    Code:
    ] rcon sm_advertisements_reload
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    
    KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/advertisements.txt
    (

    Last edited by blue zebra; 09-04-2011 at 05:08.
    blue zebra 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 21:13.


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