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

Solved Hud message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tote
Senior Member
Join Date: Jul 2023
Old 08-07-2023 , 10:44   Hud message
Reply With Quote #1

Hello, Is there a way to show someone hud message of other person?
For example:
If someone has hud message on their screen like [NAME: Player]
And if i want to show it to other player? any way ?

LIKE i aim at the player and it will show me their hud message

Last edited by Tote; 08-09-2023 at 03:22.
Tote is offline
thEsp
BANNED
Join Date: Aug 2017
Old 08-07-2023 , 12:07   Re: Hud message
Reply With Quote #2

If the messages are strictly from your plugin, you can easily do so by writing a wrapper-logger function. If not, you'll have to mess with the core module. Not a hard thing to do, but certainly silly.

TLDR: yes and no.

Last edited by thEsp; 08-07-2023 at 12:07.
thEsp is offline
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 08-07-2023 , 21:14   Re: Hud message
Reply With Quote #3

Quote:
Originally Posted by thEsp View Post
If the messages are strictly from your plugin, you can easily do so by writing a wrapper-logger function. If not, you'll have to mess with the core module. Not a hard thing to do, but certainly silly.

TLDR: yes and no.
PHP Code:
stock AIM_HUDClient )
{
        new 
__ent_Target__int_Body;
        
get_user_aiming(Client__ent_Target__int_Body );     
          
        if(
is_user_alive(__ent_Target))
       {
           new 
__str_Name[16];
           
get_user_nameTarget__str_Namecharsmax(__str_Name) );

           
set_hudmessage2551280, -4.5, -0.7506.010.00.50.5);
           
show_hudmessageClient"[NAME]: %s"__str_Name );
       }

Configurate set_hudmessage by yourself

Last edited by MrPickles; 08-07-2023 at 21:14.
MrPickles is offline
Tote
Senior Member
Join Date: Jul 2023
Old 08-09-2023 , 03:20   Re: Hud message
Reply With Quote #4

Quote:
Originally Posted by MrPickles View Post
PHP Code:
stock AIM_HUDClient )
{
        new 
__ent_Target__int_Body;
        
get_user_aiming(Client__ent_Target__int_Body );     
          
        if(
is_user_alive(__ent_Target))
       {
           new 
__str_Name[16];
           
get_user_nameTarget__str_Namecharsmax(__str_Name) );

           
set_hudmessage2551280, -4.5, -0.7506.010.00.50.5);
           
show_hudmessageClient"[NAME]: %s"__str_Name );
       }

Configurate set_hudmessage by yourself
Hello, thanks for the reply!
EDIT: Solved!

Last edited by Tote; 08-09-2023 at 03:21.
Tote 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 12:28.


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