Raised This Month: $ Target: $400
 0% 

[L4D2] Chat Publicity


Post New Thread Reply   
 
Thread Tools Display Modes
Author
foxhound27
Senior Member
Join Date: Sep 2019
Location: Argentina
Plugin ID:
6815
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Displays colored publicity as chat message
    Old 11-22-2019 , 16:52   [L4D2] Chat Publicity
    Reply With Quote #1

    Description

    This plugin was made only to display multiple publicity/announces on chat-only, with game available chat colors





    ConVar

    "l4d2_publicity_time", "120", "How long must wait to display each publicity (default 2 min = 120 seconds)"


    To compile you will need colors.inc Attached.


    Quick installation guide:

    Place l4d2_publicity.smx into /left4dead2/addons/sourcemod/plugins/
    edit and place l4d2_publicity.txt into /left4dead2/addons/sourcemod/data/

    load plugin. : )
    Attached Files
    File Type: inc colors.inc (25.4 KB, 551 views)
    File Type: txt l4d2_publicity.txt (546 Bytes, 638 views)
    File Type: sp Get Plugin or Get Source (l4d2_publicity.sp - 360 views - 1.6 KB)
    File Type: smx l4d2_publicity.smx (7.8 KB, 377 views)

    Last edited by foxhound27; 03-06-2020 at 20:21. Reason: fixed onmap end bad typo
    foxhound27 is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 11-22-2019 , 23:38   Re: [L4D2] Chat Publicity
    Reply With Quote #2

    Can you give us a clear example of how to do it? what I tried but I get only the names of the colors, maybe I do it wrong
    gamer_kanelita is offline
    foxhound27
    Senior Member
    Join Date: Sep 2019
    Location: Argentina
    Old 11-23-2019 , 00:00   Re: [L4D2] Chat Publicity
    Reply With Quote #3

    Quote:
    Originally Posted by gamer_kanelita View Post
    Can you give us a clear example of how to do it? what I tried but I get only the names of the colors, maybe I do it wrong

    ofc Kanelita just edit your l4d2_publicity.txt and reload the plugin. look


    PHP Code:

    "publicity" {

        
    "1" {
              
               
    "msg"            "{orange}Welcome {olive}to {default}Alliedmodders" 
     
             
    }

        
    "2" {
              
               
    "msg"            "{red}Server Network: {default}https://forums.alliedmods.net" 
     
             
    }

        
    "3" {
              
               
    "msg"            "{blue}Tip{default}: {orange}Enjoy" 
     
             
    }





    I hope you realize how it works, if you cant let me know. send me PM
    foxhound27 is offline
    gamer_kanelita
    Senior Member
    Join Date: Jun 2019
    Location: Peru
    Old 11-23-2019 , 01:50   Re: [L4D2] Chat Publicity
    Reply With Quote #4

    Thank you very much, now if it worked for me, if it wasn't too much trouble if you know if there is any way to modify the melee damage just for the witch or a plugin that works, I would really appreciate it
    gamer_kanelita is offline
    foxhound27
    Senior Member
    Join Date: Sep 2019
    Location: Argentina
    Old 11-23-2019 , 03:01   Re: [L4D2] Chat Publicity
    Reply With Quote #5

    Quote:
    Originally Posted by gamer_kanelita View Post
    Thank you very much, now if it worked for me, if it wasn't too much trouble if you know if there is any way to modify the melee damage just for the witch or a plugin that works, I would really appreciate it

    https://forums.alliedmods.net/showthread.php?t=301641

    try this one
    foxhound27 is offline
    phoenix0001
    Senior Member
    Join Date: Apr 2010
    Location: China
    Old 11-24-2019 , 12:45   Re: [L4D2] Chat Publicity
    Reply With Quote #6

    How survivors display red???
    {red}Server Network: {default}https://forums.alliedmods.net
    Attached Images
    File Type: jpg 20191125014158_1.jpg (42.4 KB, 1102 views)
    __________________
    I like this BBS sharing of spirit

    I come from China, my English is poor

    Last edited by phoenix0001; 11-24-2019 at 12:46.
    phoenix0001 is offline
    cravenge
    Veteran Member
    Join Date: Nov 2015
    Location: Middle of Nowhere
    Old 11-24-2019 , 13:28   Re: [L4D2] Chat Publicity
    Reply With Quote #7

    Quote:
    Originally Posted by phoenix0001 View Post
    [...]
    You can't. Red and blue colors are determined by the team you're in. If you're in Survivors, the team color will be blue. Otherwise, red is the team color.
    cravenge is offline
    MedicDTI
    Junior Member
    Join Date: Jul 2019
    Old 11-24-2019 , 19:28   Re: [L4D2] Chat Publicity
    Reply With Quote #8

    Why when i change to sm_cvar l4d2_publicity_time 120 it takes more than 2 minutes to appear and sometimes does not appear?
    MedicDTI is offline
    foxhound27
    Senior Member
    Join Date: Sep 2019
    Location: Argentina
    Old 11-24-2019 , 20:29   Re: [L4D2] Chat Publicity
    Reply With Quote #9

    Quote:
    Originally Posted by MedicDTI View Post
    Why when i change to sm_cvar l4d2_publicity_time 120 it takes more than 2 minutes to appear and sometimes does not appear?
    no clue, i added AddChangeHook to it, in order to kill timer and replace it with new one.

    Last edited by foxhound27; 11-26-2019 at 02:18. Reason: bad typos
    foxhound27 is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Taipei
    Old 11-25-2019 , 22:24   Re: [L4D2] Chat Publicity
    Reply With Quote #10

    is this the same as Advertisements 2.0?
    https://forums.alliedmods.net/showthread.php?t=155705
    __________________
    HarryPotter is offline
    Reply


    Thread Tools
    Display Modes

    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 02:34.


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