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:
InfectPlayer( iVictim, iAttacker )
{
InfectionMsg( iVictim, iAttacker );
cs_set_user_team( iVictim, TEAM_MONSTER );
g_iPlayerTeam[ iVictim ] = TEAM_MONSTER;
RemoveDeadFlag( iVictim );
}
RemoveDeadFlag( iPlayer )
{
message_begin( MSG_ALL, g_iMsgScoreAttrib )
{
write_byte( iPlayer )
write_byte( 0 )
message_end( )
}
}
InfectionMsg( iVictim, iAttacker )
{
message_begin( MSG_BROADCAST, g_iMsgDeath )
write_byte( iAttacker ) // killer
write_byte( iVictim ) // victim
write_byte( 1 ) // headshot flag
write_string( "infection" ) // killer's weapon
message_end( )
}
__________________