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

Any way to add new hud channels?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-13-2022 , 06:53   Any way to add new hud channels?
Reply With Quote #1

Hello,
Is there any way to display more than 4 hud messages at once without affecting other once?
Maybe some way to join hud messages from different plugins on one channel?

Last edited by sebxx4; 05-13-2022 at 06:53.
sebxx4 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 05-13-2022 , 09:34   Re: Any way to add new hud channels?
Reply With Quote #2

i think there is no option for more than 4 huds...will adding DHUD messages help you tho?
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-13-2022 , 10:16   Re: Any way to add new hud channels?
Reply With Quote #3

I was thinking about dhud, but it has too big font. If it could be make smaller, I think I could use it.
sebxx4 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-13-2022 , 11:39   Re: Any way to add new hud channels?
Reply With Quote #4

Sadly that it's impossible to change the font size. Try to reduce your messages overall. Alternatives to print a message:

1) Use StatusText, like in WC3FT mod.
2) Use a centered chat print (with default font/size)
3) Use a fake menu to show messages. (more color options)

Maybe that gives you an idea.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-13-2022 , 14:00   Re: Any way to add new hud channels?
Reply With Quote #5

This is an engine limitation. It's not something you can change via a plugin, module or AMXX itself.
Use less HUD messages and use them smartly/properly.
__________________

Last edited by OciXCrom; 05-13-2022 at 14:01.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-13-2022 , 14:26   Re: Any way to add new hud channels?
Reply With Quote #6

Okay, so maybe can I sum texts from different plugins and display it as one message (one channel), one by one using ^n? Is it possible to pass text between plugins? Native or something?
sebxx4 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 05-13-2022 , 23:26   Re: Any way to add new hud channels?
Reply With Quote #7

Quote:
Originally Posted by sebxx4 View Post
Okay, so maybe can I sum texts from different plugins and display it as one message (one channel), one by one using ^n? Is it possible to pass text between plugins? Native or something?
I use this method on my plugins
Untested...
PHP Code:
new g_iFwAddHudTextg_iFwResult
new g_szTextMAX_FMT_LENGTH ];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_iFwAddHudText CreateMultiForward"AddText"ET_CONTINUEFP_CELLFP_CELL )
}

public 
DisplayHUDid )
{
    
id -= TASK_HUD
    
    
new bool:bIsAliveiTargetszBuffer96 ];
    
    
bIsAlive is_user_alive(id) != 0
    iTarget 
id

    
if( !bIsAlive )
    {
        
iTarget pevidpev_iuser2 )
    }

    if(!
iTarget)
    {
        return
    }
    
    
g_szText] = 0;
    
ExecuteForwardg_iFwAddHudTextg_iFwResultidiTarget )
    
formatexszBuffercharsmaxszBuffer ), "Name: %s^nHp: %i^nLevels: %i^nCountry: %s %s"g_iPlayeriTarget ][ Name ], peviTargetpev_health ), g_iPlayeriTarget ][ Level ], g_iPlayeriTarget ][ Country ], g_szText )
    
set_hudmessage(02552550.20.24012.012.00.10.24);
    
ShowSyncHudMsgidiObjectHudszBuffer )
}
public 
AddHudTextiPluginiParams )
{
    static 
szTextMAX_FMT_LENGTH ];
    
get_string2szTextcharsmaxszText ) )
    
addg_szTextcharsmaxg_szText ), szText )

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

forward AddTextidiTarget )
native AddHudText( const szText[ ], any:... )

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

}

public 
AddTextidiTarget )
{
    if( 
is_user_adminiTarget ) )
    {
        new 
szFlags22 ];
        
get_flagsget_user_flagsiTarget ), szFlagscharsmaxszFlags ) )
        
AddHudText"^nHey Admin your flags: %s"szFlags )
    }

P.s: I also remember that someone created a plugin and typed in the description "create hud message with 8 channels" so find it and try if it works
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 05-13-2022 at 23:29.
Supremache is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-14-2022 , 04:07   Re: Any way to add new hud channels?
Reply With Quote #8

Well, I tried your code, even tried to clean it a little bit bacause it looks like its cutted from some plugin, but it doesn't work. Could you clean it up a little, please?

Also searched for this "create hud message with 8 channels", but all I found is dhudmessage...
sebxx4 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-14-2022 , 07:33   Re: Any way to add new hud channels?
Reply With Quote #9

There is no such thing as HUD with 8 channels.
HUD has 4 channels, DHUD has 8. That's it.
__________________

Last edited by OciXCrom; 05-14-2022 at 07:33.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
sebxx4
Senior Member
Join Date: Feb 2013
Old 05-14-2022 , 08:55   Re: Any way to add new hud channels?
Reply With Quote #10

Ok, so how about this hud-summing plugin?
sebxx4 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 00:26.


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