Quote:
Originally Posted by Flick3rR
This
PHP Code:
g_pFriendlyFire
is undefined. But I guess it's the number of the cvar for the friendlyfire. The two other checks are enough, so I suggest you to remove this condition in the check:
PHP Code:
&& g_pFriendlyFire
|
should i Remove
PHP Code:
public FwdTakeDamage_Pre( iAttacker, iVictim, iInflictor, Float:fDamage, iDmgBits )
{
if ( !is_user_connected( iAttacker ) || !is_user_connected( iVictim ) )
return 1;
new CsTeams:iTeams[ 2 ];
iTeams[ 0 ] = cs_get_user_team( iAttacker );
iTeams[ 1 ] = cs_get_user_team( iVictim );
if ( iTeams[ 0 ] == CS_TEAM_CT && iTeams[ 0 ] == iTeams[ 1 ] )
return 4;
return 1;
}
now ct cant kill others Ct with HE and weapons?