Raised This Month: $32 Target: $400
 8% 

Hudmessages disappear fast.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 03-02-2021 , 07:25   Hudmessages disappear fast.
Reply With Quote #1

Hudmessages for example of killstreak sounds, anti-cheat BAN messages, disappear way too fast. Hold times are set well but it looks like it's just glitched or something. Just a 0.5 of hold and it suddenly disappear without any fade out or something. I'm running 4 steamed servers with the same configurations, all are working fine except CSDM KWo mod based. There all hudmessages of events just blink for a mili-second and disappear suddently without a hold. Any ideas?

Last edited by Nbanow; 03-02-2021 at 07:26.
Nbanow is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-02-2021 , 07:26   Re: Hudmessages disappear fast.
Reply With Quote #2

How many messages do you have on the screen at the same time?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 03-02-2021 , 08:11   Re: Hudmessages disappear fast.
Reply With Quote #3

http://prntscr.com/10bb9sj - this one is parmanently always staying near radar.
It's not overloaded of plugins, so it's just Quakesounds usually or anticheat, which bans rarely so actually both never happening on the same time. Seperately killstreak messages are just blinking like anticheat but it's important to remind you that it's happening on csdm only for some reason, not sure why.
Nbanow is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-02-2021 , 08:21   Re: Hudmessages disappear fast.
Reply With Quote #4

If it's only that one, let's see its code.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 03-02-2021 , 08:26   Re: Hudmessages disappear fast.
Reply With Quote #5

If you mean that one permanent hudmessage, here it is:

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Hud Advertisement""1.0""Akka")
}
public 
client_disconnected(id)
{
    
remove_task(id 11010)
}
public 
client_putinserver(id)
{
    
set_task(5"showhudifdead"id 11010__"b")
}
public 
showhudifdead(id)
{
    
id -= 11010;

    if(!
is_user_connected(id))
        return;

    
set_hudmessage(17575460.060.0012.012.0)
    
show_hudmessage(id"ADMIN/VIP - www.phobia.lt")

Nbanow is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-02-2021 , 08:56   Re: Hudmessages disappear fast.
Reply With Quote #6

Code:
set_task(5

The difference between using 5 and 5.0 when the argument demands a float is astronomical.

This message is not being sent every 5 seconds. It's being sent 10 times per second because you're using an invalid value which makes it default to 0.1.

Having in mind that the holdtime of the message is 12 seconds, you're overflowing all of your available HUD channels thus making it impossible to display any other message for longer than ~0.4 seconds.

This is a great example of how a few lines of code can be destructive when used improperly, especially when the compiler gives you a warning that something's wrong.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Nbanow
Senior Member
Join Date: Dec 2010
Location: Lithuania
Old 03-02-2021 , 09:25   Re: Hudmessages disappear fast.
Reply With Quote #7

Thank you! : )

Last edited by Nbanow; 03-02-2021 at 09:26.
Nbanow is offline
Reply


Thread Tools
Display Modes

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 02:50.


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