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

Could anyone edit the hud


Post New Thread Reply   
 
Thread Tools Display Modes
Magicher0ex
Member
Join Date: Dec 2019
Old 12-24-2021 , 13:58   Re: Could anyone edit the hud
Reply With Quote #11

Quote:
Originally Posted by Celena Luna View Post
Try this. I think it would related to StatusValue
https://wiki.alliedmods.net/Half-lif...ts#StatusValue

PHP Code:
if(is_user_alive(iPlayer)) {
    if(
g_iCurrentMode == e_mMatch) {
        new 
szTime[24];
        
fnConvertTime(g_ePlayerInfo[iPlayer][e_plrSurviveTime], szTimecharsmax(szTime), false);
        new 
szString[64]
        
formatex(szStringcharsmax(szString), "Survive time: %s"szTime);
        
HudTextMessage(idszString);
    }
    continue;


stock HudTextMessage(idmessage[])
{
    if (!
is_user_connected(id)) return;

    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("StatusText"), _id);
    
write_byte(0);
    
write_string(message);
    
message_end();
    
    
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("StatusValue"), _id); 
    
write_byte(2); 
    
write_short(0); //Just try to set it 0 first
    
message_end();

Mhm this does nothing, but thank you! If there is anyone who understand and know how to make this type of statustext will be great.
Magicher0ex is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 12-26-2021 , 22:39   Re: Could anyone edit the hud
Reply With Quote #12

Do you still need help with this? I can give it another try
__________________
My plugin:
Celena Luna is offline
Magicher0ex
Member
Join Date: Dec 2019
Old 12-27-2021 , 00:18   Re: Could anyone edit the hud
Reply With Quote #13

Quote:
Originally Posted by Celena Luna View Post
Do you still need help with this? I can give it another try
Yes sir, i appreciate it
Magicher0ex 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 23:01.


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