Raised This Month: $ Target: $400
 0% 

Hud message showing aprox. 0.2 secs. then dissapearing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-10-2007 , 07:04   Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #1

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
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-10-2007 , 07:25   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #2

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=-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);
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-10-2007 , 07:28   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #3

Wht connor want to show is that the holdtime is a float and should be like this "7.0" :/
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-10-2007 , 07:29   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #4

What i also want to say is that he also should use -1 for the channel.
ConnorMcLeod is offline
Des12
Senior Member
Join Date: Jan 2005
Old 11-10-2007 , 10:14   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #5

If -1 is any open channel, then will it display for 7 seconds no matter which other hud messages are called?
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-10-2007 , 10:28   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #6

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.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-10-2007 , 10:45   Re: Hud message showing aprox. 0.2 secs. then dissapearing
Reply With Quote #7

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)
ConnorMcLeod is offline
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 01:16.


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