Raised This Month: $ Target: $400
 0% 

Hide HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 07-20-2011 , 15:46   Hide HUD
Reply With Quote #1

How to hide hud? money, health, round time amount of bullets and armor
health - SetEntProp(client, Prop_Send, "m_iHideHUD", ( 1<<3 ));
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 07-21-2011 , 00:57   Re: Hide HUD
Reply With Quote #2

Here: http://forums.alliedmods.net/showthread.php?p=680121
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
ShufflexDD
Senior Member
Join Date: Apr 2011
Location: :noitaɔo˩
Old 07-21-2011 , 06:30   Re: Hide HUD
Reply With Quote #3

it's for amx mod, it doesn't work in sourcemod
__________________

⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈⇈
Check this website and find out how many functions
it has working with game server together.
ShufflexDD is offline
Send a message via ICQ to ShufflexDD Send a message via Skype™ to ShufflexDD
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-21-2011 , 07:28   Re: Hide HUD
Reply With Quote #4

smlib/clients.inc
PHP Code:
// Hud Element hiding flags (possibly outdated)
#define    HIDEHUD_WEAPONSELECTION        ( 1<<0 )    // Hide ammo count & weapon selection
#define    HIDEHUD_FLASHLIGHT            ( 1<<1 )
#define    HIDEHUD_ALL                    ( 1<<2 )
#define HIDEHUD_HEALTH                ( 1<<3 )    // Hide health & armor / suit battery
#define HIDEHUD_PLAYERDEAD            ( 1<<4 )    // Hide when local player's dead
#define HIDEHUD_NEEDSUIT            ( 1<<5 )    // Hide when the local player doesn't have the HEV suit
#define HIDEHUD_MISCSTATUS            ( 1<<6 )    // Hide miscellaneous status elements (trains, pickup history, death notices, etc)
#define HIDEHUD_CHAT                ( 1<<7 )    // Hide all communication elements (saytext, voice icon, etc)
#define    HIDEHUD_CROSSHAIR            ( 1<<8 )    // Hide crosshairs
#define    HIDEHUD_VEHICLE_CROSSHAIR    ( 1<<9 )    // Hide vehicle crosshair
#define HIDEHUD_INVEHICLE            ( 1<<10 )
#define HIDEHUD_BONUS_PROGRESS        ( 1<<11 )    // Hide bonus progress display (for bonus map challenges)

/**
* Sets the Hide-Hud flags of a client
*
* @param client        Client index.
* @param flags        Flag to set, use one of the HIDEHUD_ hiding constants
* @noreturn
*/
stock Client_SetHideHud(clientflags)
{
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);

__________________
Peace-Maker is offline
id_amber
New Member
Join Date: Feb 2012
Location: Korea, Republic of
Old 08-17-2012 , 07:22   Re: Hide HUD
Reply With Quote #5

Quote:
Originally Posted by Peace-Maker View Post
smlib/clients.inc
PHP Code:
// Hud Element hiding flags (possibly outdated)
#define    HIDEHUD_WEAPONSELECTION        ( 1<<0 )    // Hide ammo count & weapon selection
#define    HIDEHUD_FLASHLIGHT            ( 1<<1 )
#define    HIDEHUD_ALL                    ( 1<<2 )
#define HIDEHUD_HEALTH                ( 1<<3 )    // Hide health & armor / suit battery
#define HIDEHUD_PLAYERDEAD            ( 1<<4 )    // Hide when local player's dead
#define HIDEHUD_NEEDSUIT            ( 1<<5 )    // Hide when the local player doesn't have the HEV suit
#define HIDEHUD_MISCSTATUS            ( 1<<6 )    // Hide miscellaneous status elements (trains, pickup history, death notices, etc)
#define HIDEHUD_CHAT                ( 1<<7 )    // Hide all communication elements (saytext, voice icon, etc)
#define    HIDEHUD_CROSSHAIR            ( 1<<8 )    // Hide crosshairs
#define    HIDEHUD_VEHICLE_CROSSHAIR    ( 1<<9 )    // Hide vehicle crosshair
#define HIDEHUD_INVEHICLE            ( 1<<10 )
#define HIDEHUD_BONUS_PROGRESS        ( 1<<11 )    // Hide bonus progress display (for bonus map challenges)

/**
* Sets the Hide-Hud flags of a client
*
* @param client        Client index.
* @param flags        Flag to set, use one of the HIDEHUD_ hiding constants
* @noreturn
*/
stock Client_SetHideHud(clientflags)
{
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);

Thanks!
id_amber is offline
Send a message via Skype™ to id_amber
_pHabb
Senior Member
Join Date: Jul 2013
Location: GetCountry(pHabb);
Old 08-08-2015 , 11:59   Re: Hide HUD
Reply With Quote #6

How to hide money hud?
_pHabb is offline
Blowst
Senior Member
Join Date: Feb 2011
Location: Korea, Republic of
Old 09-24-2015 , 02:25   Re: Hide HUD
Reply With Quote #7

Quote:
Originally Posted by _pHabb View Post
How to hide money hud?
To hide money HUD (CS:GO):
PHP Code:
SendConVarValue(clientFindConVar("mp_playercashawards"), "0");
SendConVarValue(clientFindConVar("mp_teamcashawards"), "0"); 
To display money HUD (CS:GO):
PHP Code:
SendConVarValue(clientFindConVar("mp_playercashawards"), "1");
SendConVarValue(clientFindConVar("mp_teamcashawards"), "1"); 
__________________
Sorry about my poor English


Last edited by Blowst; 09-24-2015 at 02:26.
Blowst 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 20:02.


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