AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_dhudmessage forever? (https://forums.alliedmods.net/showthread.php?t=309788)

lolkie02 08-07-2018 03:11

set_dhudmessage forever?
 
Hello,
How do I make a dhudmessage to stay forever, or until the same ID is re-used? Right now it just shows really quickly so I can't see the text. The code is used for when you look at player, it shows player name in HUD, but I want it to only be there when you look at player.
Code:

set_dhudmessage(34, 49, 255, -1.0, 0.60, 1, 0.01, 0, 0.01, 0.01, false)

PurposeLessx 08-07-2018 04:53

Re: set_dhudmessage forever?
 
You should check if player look at player and if he do, use set_dhud.

Also you should make the effect 0.

PHP Code:

set_dhudmessage(34,49,255,-1.0,0.60,0,0.0,1.0


OciXCrom 08-07-2018 08:22

Re: set_dhudmessage forever?
 
Of course it disappears right away when you set its duration to 0.
Read - https://www.amxmodx.org/api/amxmodx/set_dhudmessage


All times are GMT -4. The time now is 12:24.

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