You can use traceline if you want...
PHP Code:
public TRIGGER_TraceLine(Float:v1[3], Float:v2[3], noMonsters, pentToSkip){
new iAttacker = pentToSkip;
new iVictim = get_tr(TR_pHit);
if ( iVictim >= 1 && iVictim <= 32 && iAttacker >= 1 && iAttacker <= 32){
new Float:rand = random_float(0.0,1.0)
new Float:chance = 0.3
if (is_user_alive(iVictim) && (rand <= chance)){
set_tr(TR_flFraction, 1.0);
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}
__________________