Raised This Month: $ Target: $400
 0% 

Two set_hudmessage colors...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n04d
Junior Member
Join Date: Jan 2005
Old 02-03-2005 , 17:45   Two set_hudmessage colors...
Reply With Quote #1

I have been trying to figure out how to make it so I can draw text using HUD messages in one color, (red, blue, whatever) and then having other text being drawn at the same time on a different channel but like, white.

The two colors work for a few seconds, but then the red/blue or whatever I have it set on fades to white.

I tried drawing each seperatly in two different "publics" and having different channels, etc. no luck though.

Any ideas on how I can do this?
n04d is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-03-2005 , 19:14  
Reply With Quote #2

Two different channels and colors with set_hudmessage should display correctly at the same time, unless you have other plugins interfering with the channels somehow.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
n04d
Junior Member
Join Date: Jan 2005
Old 02-12-2005 , 12:36  
Reply With Quote #3

Well, Whenever I try to draw this...

Code:
public displayHUDRNR()
{
	set_hudmessage(255, 255, 135, 0.70, 0.10, 0, 0.5, 999999.9, 0.0, 2.0, 1);
	show_hudmessage(0,"Not Ready:^n^n^n^n^n^n^n^n^n^n^n^n^n^nReady:^n")
	set_task(1.0,"displayHUDRNR",2001)
}
It will show the colors I put (255,255,135) for a second or two, then it goes back to white. When the little "Welcome to Counter-Strike!" comes up that hudmessage dissapears and then when the Welcome to goes away, it comes back, but, is the right color but then turns white again.

I tried disabling like, all plugins except for mine, but no luck still. I even tried different channels but it still does it.

Anything else I draw is fine.

Also, I noticed that, whenever It does that, then somebody else connects to the server, the colors turn from white back to what I want them, and stay there like I want, until the round restarts, then of course, it goes back to what it did before until another connects.
n04d is offline
TotalNoobScripter
Senior Member
Join Date: Aug 2004
Old 02-12-2005 , 13:30  
Reply With Quote #4

Code:
new TEXTCHANNEL = 2 // If it is declared with 2, the Hud message will start with the first channel; due to the if statements. public displayHUDRNR() { if (TEXTCHANNEL == 1) {    TEXTCHANNEL = 2 } else {    TEXTCHANNEL = 1 }    set_hudmessage(255, 255, 135, 0.70, 0.10, 0, 0.5, 999999.9, 0.0, 2.0, TEXTCHANNEL);    show_hudmessage(0,"Not Ready:^n^n^n^n^n^n^n^n^n^n^n^n^n^nReady:^n")    set_task(1.0,"displayHUDRNR",2001) }
TotalNoobScripter is offline
Send a message via AIM to TotalNoobScripter
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 19:20.


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