Raised This Month: $ Target: $400
 0% 

Hiding HUD icons but only for a specific team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hartmann
Senior Member
Join Date: Nov 2014
Old 09-22-2015 , 16:02   Re: Hiding HUD icons but only for a specific team
Reply With Quote #1

Try...

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

#define HUD_HIDE_TIMER (1<<4)
#define HUD_HIDE_MONEY (1<<5)


public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1);
}

public 
fwHamPlayerSpawnPost(usr) {
    if (
is_user_alive(usr)) {
        if (
cs_get_user_team(usr) == CS_TEAM_T)
        {
            new 
hideflags GetHudHideFlags()
        
            if( 
hideflags )
            {
                
message_beginMSG_ONEget_user_msgid"HideWeapon" ), _usr )
                
write_bytehideflags )
                
message_end()
            }
        }
    }
}
stock GetHudHideFlags()
{
    new 
iFlags;
    
    
iFlags |= HUD_HIDE_TIMER;
    
iFlags |= HUD_HIDE_MONEY;
    
    return 
iFlags;

__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann 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 22:12.


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