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

clean hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 03-23-2015 , 13:22   clean hud
Reply With Quote #1

Can you show me example how to clean hud message?

PHP Code:
new num;

public 
plugin_init() 
{
    
register_clcmd("say /test""cmd_test");
}

public 
cmd_test(id)
{
    
//clean HUD if exists
    
    
set_hudmessage(255000.290.3306.012.0);
    
show_hudmessage(id"Current number is: %i"num);
    
    
num += 1;

__________________
Hi.
GhostMan is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 03-23-2015 , 16:09   Re: clean hud
Reply With Quote #2

Quote:
Originally Posted by GhostMan View Post
Can you show me example how to clean hud message?
Code:
new num; public plugin_init()  {     register_clcmd("say /test", "cmd_test"); } public cmd_test(id) {           set_hudmessage(255, 0, 0, 0.29, 0.33, 0, 6.0, 12.0, _, _, 1);     show_hudmessage(id, "Current number is: %i", num);           num += 1; }

read this to understand more about the parameters that set_hudmessage takes

Last edited by jimaway; 03-23-2015 at 16:13.
jimaway is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 03-23-2015 , 20:22   Re: clean hud
Reply With Quote #3

you can't delete a hud
you can either sync the show time or print a lot of empty huds which is very bad
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 03-24-2015 , 01:35   Re: clean hud
Reply With Quote #4

I am not sure but what you can try out is if you send a Empty HUD message to the same channel on which previous HUD was sent .. it should be cleared.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux 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 16:15.


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