Raised This Month: $ Target: $400
 0% 

Not disappearing hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blAck.
Member
Join Date: Jun 2018
Old 07-24-2018 , 11:17   Not disappearing hud
Reply With Quote #1

How can I make a hud which won't disappear?
Like lifetime hud myb...
blAck. is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-24-2018 , 12:54   Re: Not disappearing hud
Reply With Quote #2

By using a repeating task.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-24-2018 , 12:57   Re: Not disappearing hud
Reply With Quote #3

1) Click Search
2) Replace 'lifetime' with 'permanent'
3) Click one of the 122 existing threads with the same problem.
__________________
edon1337 is offline
MagNNusS
Member
Join Date: May 2018
Location: World of Bushi
Old 07-25-2018 , 06:21   Re: Not disappearing hud
Reply With Quote #4

By following the source code down below i think you may fix your hud
PHP Code:
#include <amxmodx>
#include <amxmisc>

new const PLUGIN[] = "Hud Info";
new const 
VERSION[] = "1.0";
new const 
AUTHOR[] = "MagNNusS";

new 
show_hud
new syncObj

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
show_hud register_cvar("amx_show_hud""1"/// Write 0 to disable hud!
    
syncObj     CreateHudSyncObj()
}

public 
ShowHud(id)
{
    
set_hudmessage(025500.020.2)
    
ShowSyncHudMsg(idsyncObj,"Add a text over here...")
}

public 
client_putinserver(id)
{
    if(
get_pcvar_num(show_hud) == 1)
        
set_task(1.0"ShowHud"id__"b")

P.S: I didn't tested it!
__________________
Just an impractical signature
nothing to see here.
MagNNusS is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-25-2018 , 08:08   Re: Not disappearing hud
Reply With Quote #5

Where's remove_task()?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 07-25-2018 , 10:08   Re: Not disappearing hud
Reply With Quote #6

How many hudmessage you use on the same time on your server ?
D4rkSiD3Rs 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 12:50.


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