Quote:
Originally Posted by aron9forever
there's no hooking of attacks so it can't be from this plugin
for box to work, jail servers require ff to be on always and block attacks when box is off with , usually, ham_attack or takedamage.
That's what you gotta look for
|
i got this in Box Code
can u explain wat problem here?
why Still guards can kill another Guards with HE and weapons?
Code:
RegisterHam( Ham_TakeDamage, "player", "FwdTakeDamage_Pre", 0 );
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 ] && g_pFriendlyFire )
return 4;
return 1;
}