Raised This Month: $ Target: $400
 0% 

Not disappearing hud


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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