AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hud message showing aprox. 0.2 secs. then dissapearing (https://forums.alliedmods.net/showthread.php?t=63031)

BigDontCry 11-10-2007 07:04

Hud message showing aprox. 0.2 secs. then dissapearing
 
Hey

How this message only shows for about 0.2 secs?

PHP Code:

set_hudmessage(2122550, -1.00.606.070.20.44)
show_hudmessage(id"Congratulations! You gained a level!^nYou are now level %d"p_level[id]) 

Holdtime is 7 seconds... It's really annoying

ConnorMcLeod 11-10-2007 07:25

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
Quote:

Originally Posted by amxmodx.inc
/**
* Sets format for hudmessage.
* Note - as of AMX Mod X 1.61, setting the channel to -1
* will automatically choose the next available HUD channel for a player.
*/
native set_hudmessage(red=200, green=100, blue=0, Float:x=-1.0, Float:y=0.35, effects=0, Float:fxtime=6.0, Float:holdtime=12.0, Float:fadeintime=0.1, Float:fadeouttime=0.2,channel=4);


Alka 11-10-2007 07:28

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
Wht connor want to show is that the holdtime is a float and should be like this "7.0" :/

ConnorMcLeod 11-10-2007 07:29

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
What i also want to say is that he also should use -1 for the channel.

Des12 11-10-2007 10:14

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
If -1 is any open channel, then will it display for 7 seconds no matter which other hud messages are called?

Alka 11-10-2007 10:28

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
Nope. If 3 is a open channel then will display the message, but if another message is displayed in channel 3, the last message is removed.

ConnorMcLeod 11-10-2007 10:45

Re: Hud message showing aprox. 0.2 secs. then dissapearing
 
But if the other hudmessage is also set to channel -1, it won't use the same channel. (unless no channels are free, i guess)


All times are GMT -4. The time now is 01:16.

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