Raised This Month: $51 Target: $400
 12% 

set_dhudmessage forever?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolkie02
Junior Member
Join Date: Aug 2018
Old 08-07-2018 , 03:11   set_dhudmessage forever?
Reply With Quote #1

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)
lolkie02 is offline
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 08-07-2018 , 04:53   Re: set_dhudmessage forever?
Reply With Quote #2

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
__________________
A plugin that is needed for every server.
PHP Code:
public client_connect(id)
{
    if(
get_user_iq(id) < 80)
    {
        
server_cmd("kick #%d 'You have kicked from the server because your IQ is not high enough'"get_user_userid(id));
    }


Last edited by PurposeLessx; 08-07-2018 at 08:38.
PurposeLessx is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-07-2018 , 08:22   Re: set_dhudmessage forever?
Reply With Quote #3

Of course it disappears right away when you set its duration to 0.
Read - https://www.amxmodx.org/api/amxmodx/set_dhudmessage
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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:54.


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