AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Two set_hudmessage colors... (https://forums.alliedmods.net/showthread.php?t=9924)

n04d 02-03-2005 17:45

Two set_hudmessage colors...
 
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?

XxAvalanchexX 02-03-2005 19:14

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.

n04d 02-12-2005 12:36

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.

TotalNoobScripter 02-12-2005 13:30

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) }


All times are GMT -4. The time now is 19:20.

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