AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Duration of hudmessage with cvar? (https://forums.alliedmods.net/showthread.php?t=183128)

bazhenov93 04-17-2012 19:32

Duration of hudmessage with cvar?
 
example: set_hudmessage(r, g, b, 0, cvar_here, 2.5, 0.1, 0.3)

kramesa 04-17-2012 19:40

Re: Duration of hudmessage with cvar?
 
Use get_pcvar_num()

Exolent[jNr] 04-17-2012 22:45

Re: Duration of hudmessage with cvar?
 
Quote:

Originally Posted by bazhenov93 (Post 1691349)
example: set_hudmessage(r, g, b, 0, cvar_here, 2.5, 0.1, 0.3)

You know that's not how the parameters are, right?

red, green, blue, x, y, effects, fxtime, holdtime, fadeintime, fadeouttime, channel

bazhenov93 04-18-2012 00:02

Re: Duration of hudmessage with cvar?
 
Yes Exolent ;) i just write fast and just an example

anyway, ty :)

and about get_pcvar, what?

rak 04-18-2012 00:05

Re: Duration of hudmessage with cvar?
 
read the fucking wiki

http://www.amxmodx.org/funcwiki.php?go=func&id=28

bazhenov93 04-18-2012 00:07

Re: Duration of hudmessage with cvar?
 
rak stop helping me.

rak 04-18-2012 00:12

Re: Duration of hudmessage with cvar?
 
Quote:

Originally Posted by bazhenov93 (Post 1691520)
rak stop helping me.

you don't need help.. you need 1 person to do your code

EDIT; i'm boring, because that.. I do your simple code

bazhenov93 04-18-2012 00:56

Re: Duration of hudmessage with cvar?
 
I said that because I read tutorials! BUT some times I CAN'T understand or I got problems with the code or i'm confused! so i ask for help

fearmelfice 04-18-2012 01:05

Re: Duration of hudmessage with cvar?
 
what about it

new gtime = get_gametime()

set_hudmessage(255, 255, 255, 0.75, 0.90, 0, 6.0, gtime)

Ortega 04-18-2012 09:01

Re: Duration of hudmessage with cvar?
 
Quote:

Originally Posted by fearmelfice (Post 1691554)
what about it

new gtime = get_gametime()

set_hudmessage(255, 255, 255, 0.75, 0.90, 0, 6.0, gtime)

Genius... Did you test your code ?


All times are GMT -4. The time now is 05:40.

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