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

question about way to show HudMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-19-2021 , 06:40   question about way to show HudMsg
Reply With Quote #1

Which of this following method is the best way to show a scoreboard/InfoHud (Ammopack, Class,...) with HudMsg?
- looping with set_task and flag "b"
- loop using entity think
- override it with new msg on that channel
__________________
My plugin:
Celena Luna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-19-2021 , 06:58   Re: question about way to show HudMsg
Reply With Quote #2

set_task
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-19-2021 , 08:02   Re: question about way to show HudMsg
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
set_task
Could you give more detail why? I saw a lot of people loop 0.1s and cause Overflow if they have 3-4 Hud on the screen
__________________
My plugin:

Last edited by Celena Luna; 08-19-2021 at 08:02.
Celena Luna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-19-2021 , 09:17   Re: question about way to show HudMsg
Reply With Quote #4

First Well set_task won't consume any resources such as entities, second set task will never cause overflow depending on the hud messages you have, they are limited to 4 channels only and you can use channel -1 which will look for an empty channel and use it, third You can use dhud messages if you want to display 8 messages at once, or you can use HudSync you can find more about this in the documentation..
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-19-2021 at 09:18.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 14:10.


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