AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Displaying Hud with No Effect (https://forums.alliedmods.net/showthread.php?t=162414)

deadman909 07-18-2011 19:04

Displaying Hud with No Effect
 
How do you set a hud to display with no effect. Because Whenever my hud appears it keeps flickering like on and off. I just want it to stay solid with no effect

Code:

set_hudmessage( 0, 255, 0, 0.02, -0.22, 2, 0.0, 1.0, 0.0, 0.0, -1 );
show_hudmessage( id, "Welcome to The World of Dreams );

The number 2 inbetween "-0.22" and "0.0" seems to be the effect and this is what happens when i Change it to this bottom numbers
* 0: fade in and out
* 1: fade in and out but seems to be more glowy of some sort
* 2: fade in and out sort of the same as 0

Bugsy 07-18-2011 19:07

Re: Displaying Hud with No Effect
 
http://www.amxmodx.org/funcwiki.php?go=func&id=28

Set effects param to 0/default.

deadman909 07-19-2011 00:19

Re: Displaying Hud with No Effect
 
Quote:

Originally Posted by Bugsy (Post 1513457)

Thats still has effects I want one that just appears but with no effects. Because I want it to stay there all the time. So I do not want it to have effects.

Edit:
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 )

Well I was able to made the effect look lesser.

Edit:
But for some reason the Hud is affecting other Huds that come out. Does anybody know how to make it so new huds dont affect other huds?

Hunter-Digital 07-19-2011 04:49

Re: Displaying Hud with No Effect
 
Use fade-in, fade-out effects and set fxtime and fadein time to 0.0, that will just pop up the message.

Quote:

Originally Posted by deadman909 (Post 1513548)
But for some reason the Hud is affecting other Huds that come out. Does anybody know how to make it so new huds dont affect other huds?

There are only 4 channels for normal HUD messages, you can change the channel to -1 to automatically pick a free channel but that won't last long if you have lot of HUD messages.
If you just need to send a message and don't need to cancel or update it, search for "Director HUD messages" in the code/snippets forum.

deadman909 07-19-2011 22:47

Re: Displaying Hud with No Effect
 
i just tried Direct Hud but it still affects other huds of other plugins do you know why?


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

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