Traceline this dont work enyone know why?
want players whit same numbers unable to hit each other.
so same number count as miss dont wanna use add hp or enything like that.
gonna use this in my plugin so +karma if you help me =)
PHP Code:
public traceline(Float:v1[3], Float:v2[3], noMonsters, pentToSkip){
new iAttacker = pentToSkip;
new iVictim = get_tr(TR_pHit);
if (iVictim >= 1 && iVictim <= g_MaxPlayers && iAttacker >= 1 && iAttacker <= g_MaxPlayers){
if (PlayersTeam[iVictim] == PlayersTeam[iVictim]){
set_tr(TR_flFraction, 1.0);
return FMRES_SUPERCEDE;
}
}
return FMRES_IGNORED;
}
__________________