Raised This Month: $ Target: $400
 0% 

Solved Hud update


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Point
Junior Member
Join Date: Oct 2014
Old 05-26-2019 , 20:03   Hud update
Reply With Quote #1

Hello! How can i do this? It doesn't update after the value is changed.

PHP Code:
public plugin_init()
{
        
g_iSyncHud CreateHudSyncObj();
        
set_task(0.1"Task_Display"TASK_SHOWPOINTS, .flags "b");
}

public 
Task_Display(id
{
    if(
m_iPoints[id] == 1)
    {
        
set_hudmessage(02040, -1.00.6800.00.10.010.0);
        
ShowSyncHudMsg(idg_iSyncHud "Points - (x) ()");
    } else if(
m_iPoints[id] == 2) {
        
set_hudmessage(02040, -1.00.6800.00.10.010.0);
        
ShowSyncHudMsg(idg_iSyncHud "Points - (x) (x)");
    } else {
                
set_hudmessage(02040, -1.00.6800.00.10.010.0);
        
ShowSyncHudMsg(idg_iSyncHud "Points - () ()");
       }


Last edited by Point; 06-18-2019 at 12:37.
Point is offline
 



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 07:59.


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