Raised This Month: $ Target: $400
 0% 

Solved Remove "DEAD" flag


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 11-25-2018 , 17:18   Remove "DEAD" flag
Reply With Quote #1

Hi, I've been going thru some issues with my latest code, I'm unable to remove the 'DEAD' flag from scoreboard for some reason, and I'm trying to do something: When Player1 infects Player2 it should show up in the kill-feed like this:

Player1 ☠️ Player2 or Player1 ☠️ Player2

Player2 color depending on his team, but instead it's always showing:
Player1 ☠️ Player2

PS: TEAM_MONSTER == 2 (TEAM_CT)

PHP Code:
InfectPlayeriVictimiAttacker )
{
    
InfectionMsgiVictimiAttacker );

    
cs_set_user_teamiVictimTEAM_MONSTER );
    
g_iPlayerTeamiVictim ] = TEAM_MONSTER;
    
    
RemoveDeadFlagiVictim );
}

RemoveDeadFlagiPlayer )
{
    
message_beginMSG_ALLg_iMsgScoreAttrib 
    { 
        
write_byteiPlayer 
        
write_byte
        
message_end( ) 
    }
}

InfectionMsgiVictimiAttacker )
{
    
message_beginMSG_BROADCASTg_iMsgDeath )
    
write_byteiAttacker // killer
    
write_byteiVictim // victim
    
write_byte// headshot flag
    
write_string"infection" // killer's weapon
    
message_end( )

__________________

Last edited by edon1337; 11-29-2018 at 17:00.
edon1337 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:35.


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