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

Dont show HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ComedyShotsGamer
Senior Member
Join Date: Mar 2016
Old 11-20-2017 , 05:27   Dont show HUD
Reply With Quote #1

PHP Code:
public PlayerInformation(id)
{
    if(
PlayerInformationB[id])
    {
        if(
is_user_alive(id))
        {
            new 
Health get_user_health(id);
            new 
Armor  get_user_armor(id);
            
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_T:
                {
                    
set_dhudmessage(255000.270.8706.01.0)
                    
show_dhudmessage(id"Class: Prisoner | Health: %i | Armor: %i | Dollars: %i"HealthArmorDollars[id]);
                }
                case 
CS_TEAM_CT:
                {
                    
set_dhudmessage(002180.270.8706.01.0)
                    
show_dhudmessage(id"Class: Guard | Health: %i | Armor: %i | Dollars: %i"HealthArmorDollars[id]);
                }
            }
        }
    }

How to disable the dhudmessage?
ComedyShotsGamer is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 11-20-2017 , 05:39   Re: Dont show HUD
Reply With Quote #2

PHP Code:
public PlayerInformation(id)
{
    if(
PlayerInformationB[id])
    {
        if(
is_user_alive(id))
        {
            new 
Health get_user_health(id);
            new 
Armor  get_user_armor(id);
            
            switch(
cs_get_user_team(id))
            {
                case 
CS_TEAM_T:
                {
                    
//set_dhudmessage(255, 0, 0, 0.27, 0.87, 0, 6.0, 1.0)
                    //show_dhudmessage(id, "Class: Prisoner | Health: %i | Armor: %i | Dollars: %i", Health, Armor, Dollars[id]);
                
}
                case 
CS_TEAM_CT:
                {
                    
//set_dhudmessage(0, 0, 218, 0.27, 0.87, 0, 6.0, 1.0)
                    //show_dhudmessage(id, "Class: Guard | Health: %i | Armor: %i | Dollars: %i", Health, Armor, Dollars[id]);
                
}
            }
        }
    }

Just don't execute the function if you don't want the info to show. Simple.

Last edited by WhiteFang1319; 11-20-2017 at 05:40.
WhiteFang1319 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 11-20-2017 , 05:44   Re: Dont show HUD
Reply With Quote #3

PHP Code:
public PlayerInformation(id)
{
}
    
/*if(PlayerInformationB[id])
    {
        if(is_user_alive(id))
        {
            new Health = get_user_health(id);
            new Armor  = get_user_armor(id);
            
            switch(cs_get_user_team(id))
            {
                case CS_TEAM_T:
                {
                    set_dhudmessage(255, 0, 0, 0.27, 0.87, 0, 6.0, 1.0)
                    show_dhudmessage(id, "Class: Prisoner | Health: %i | Armor: %i | Dollars: %i", Health, Armor, Dollars[id]);
                }
                case CS_TEAM_CT:
                {
                    set_dhudmessage(0, 0, 218, 0.27, 0.87, 0, 6.0, 1.0)
                    show_dhudmessage(id, "Class: Guard | Health: %i | Armor: %i | Dollars: %i", Health, Armor, Dollars[id]);
                }
            }
        }
    }
}*/ 
even better. no computing power is used checking if statements
__________________
retired chump
DjSoftero is offline
ComedyShotsGamer
Senior Member
Join Date: Mar 2016
Old 11-20-2017 , 05:53   Re: Dont show HUD
Reply With Quote #4

I dont mean this.

Last edited by ComedyShotsGamer; 11-20-2017 at 12:45.
ComedyShotsGamer is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-20-2017 , 07:36   Re: Dont show HUD
Reply With Quote #5

What else?! The message shows only if PlayerInformationB[id] is TRUE. If it's not - it doesn't show it.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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:15.


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