AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Chat Publicity (https://forums.alliedmods.net/showthread.php?t=319842)

foxhound27 11-22-2019 16:52

[L4D2] Chat Publicity
 
4 Attachment(s)
Description

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


https://i.imgur.com/GA70QX6.jpg


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. : )

gamer_kanelita 11-22-2019 23:38

Re: [L4D2] Chat Publicity
 
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 :(

foxhound27 11-23-2019 00:00

Re: [L4D2] Chat Publicity
 
Quote:

Originally Posted by gamer_kanelita (Post 2674088)
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

gamer_kanelita 11-23-2019 01:50

Re: [L4D2] Chat Publicity
 
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 :)

foxhound27 11-23-2019 03:01

Re: [L4D2] Chat Publicity
 
Quote:

Originally Posted by gamer_kanelita (Post 2674094)
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

phoenix0001 11-24-2019 12:45

Re: [L4D2] Chat Publicity
 
1 Attachment(s)
How survivors display red???
{red}Server Network: {default}https://forums.alliedmods.net
https://forums.alliedmods.net/attach...1&d=1574617503

cravenge 11-24-2019 13:28

Re: [L4D2] Chat Publicity
 
Quote:

Originally Posted by phoenix0001 (Post 2674312)
[...]

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.

MedicDTI 11-24-2019 19:28

Re: [L4D2] Chat Publicity
 
Why when i change to sm_cvar l4d2_publicity_time 120 it takes more than 2 minutes to appear and sometimes does not appear?

foxhound27 11-24-2019 20:29

Re: [L4D2] Chat Publicity
 
Quote:

Originally Posted by MedicDTI (Post 2674354)
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.

HarryPotter 11-25-2019 22:24

Re: [L4D2] Chat Publicity
 
is this the same as Advertisements 2.0?
https://forums.alliedmods.net/showthread.php?t=155705


All times are GMT -4. The time now is 12:18.

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