Re: Advertisements
I'm pretty sure COLOR_TEAM won't work for PrintToChatAll
This thread could prove useful: http://forums.alliedmods.net/showthread.php?t=66654 |
Re: Advertisements
It works, but it's always light green because the message is sent by the server. To be able to have red and blue text (using TF2 as an example, not sure what those colors are in other games) I'd have to send it from a currently playing client with SayText2, which means that if no one is playing those colors won't work. So I'm not sure if that's what you guys want... Implementing the 3 shades of green is easy, so.
|
Re: Advertisements
Quote:
|
Re: Advertisements
Nope, when I target it at me when sending it from the server it's still light green. I could of course loop through the users and use them as both the target and sender, but that would be a lot of commands if it can also be done with one (but without the team colors)... I don't know, on the other hand it doesn't get executed that often so I'm sure SM could handle it.
Edit: alright, what I did now was loop through every player, and use light green if they're a spectator, and their team color if they're playing. I guess that's the best way to do it. |
Re: Advertisements
Alright, version 0.2 is up now. I've done everything requested except:
|
Re: Advertisements
Cool! Glad to see colours. Thank you.
Who is the plugin looking at for the {TEAM} colour? Are you saying it will display the colour differently for everyone on the server depending on what team they're on or whether they're in spec? |
Re: Advertisements
Yes, to take the example of TF2: if the player that the advertisement is sent to is on Blue it will use the blue color, if he's on Red the red color, and if he's in spectate it's light green.
|
Re: Advertisements
It works really well DJ Tsunami.
Thank you. +1 karma :D |
Re: Advertisements
Using Advertisement version 0.2 compiled with Sourcemod version 1924
Errors: L 03/10/2008 - 00:00:00: [SM] Native "StartMessage" reported: Invalid message name: "SayText2" L 03/10/2008 - 00:00:00: [SM] Displaying call stack trace for plugin "advertisements.smx": L 03/10/2008 - 00:00:00: [SM] [0] Line 210, C:\Users\cozmicshredder\Documents\GAMESERVERS \SOURCEMOD\sourcemod-r1924\addons\sourcemod\scripting\include\user messages.inc::StartMessageOne() L 03/10/2008 - 00:00:00: [SM] [1] Line 199, advertisements.sp::SayText2() L 03/10/2008 - 00:00:00: [SM] [2] Line 134, advertisements.sp::Timer_DisplayAds() |
Re: Advertisements
That's an Insurgency issue who uses a different way of displaying msgs, thats why its not working ;)
|
All times are GMT -4. The time now is 11:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.