Raised This Month: $32 Target: $400
 8% 

[L4D2] Chat Publicity


Post New Thread Reply   
 
Thread Tools Display Modes
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 11-26-2019 , 01:37   Re: [L4D2] Chat Publicity
Reply With Quote #11

Quote:
Originally Posted by fbef0102 View Post
is this the same as Advertisements 2.0?
https://forums.alliedmods.net/showthread.php?t=155705
Same idea but only chat-message ads with color support for l4d2 very simple code
foxhound27 is offline
AsphyxiaJLSA
Member
Join Date: Oct 2021
Location: Lima,Perú
Old 05-16-2022 , 20:11   Re: [L4D2] Chat Publicity
Reply With Quote #12

It's strange sometimes I put for example blue 2 times and the plugins stop working with this error

PHP Code:
L 05/16/2022 19:09:01: [SMException reportedUsing two team colors in one message is not allowed
L 05
/16/2022 19:09:01: [SMBlamingl4d2_publicity.smx
L 05
/16/2022 19:09:01: [SMCall stack trace:
L 05/16/2022 19:09:01: [SM]   [0ThrowError
L 05
/16/2022 19:09:01: [SM]   [1Line 414C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\include\colors.inc::CFormat
L 05
/16/2022 19:09:01: [SM]   [2Line 78C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\include\colors.inc::CPrintToChat
L 05
/16/2022 19:09:01: [SM]   [3Line 174C:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\include\colors.inc::CPrintToChatAll
L 05
/16/2022 19:09:01: [SM]   [4Line 70l4d2_publicity.sp::DisplayPublicity 
but the plugin works fine, although sometimes that little mistake is annoying
__________________
→MY STEAM PROFILE←

DISCORD: Asphyxia#9797

Sorry for my bad English
AsphyxiaJLSA is offline
SmallJeff
New Member
Join Date: Jan 2023
Old 01-28-2023 , 22:59   Re: [L4D2] Chat Publicity
Reply With Quote #13

Quote:
Originally Posted by foxhound27 View Post
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. : )

I am very new to these, I have already put several plugins, could you tell me where to drag the 4 files in the folder? thank you

Last edited by SmallJeff; 01-28-2023 at 23:01.
SmallJeff 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 17:48.


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