How do I include minimum distance as well?
PHP Code:
amx_bulletwhizz_dis = register_cvar("amx_bulletwhizz_maxdis", "3000")
amx_bulletwhizz_dis = register_cvar("amx_bulletwhizz_mindis", "300")
//This is the part where it calculates the distance, I don't know where should I add minimum distance
if( flDistance < 0.0 || flDistance > get_pcvar_float(amx_bulletwhizz_maxdis) || !fm_is_ent_visible(id, target))
Basically:
I could hear bullet whizz when someone shoots towards me even from 0 to 3000 meters, what I want to happen is to add minimum range, so I could only hear it from 300 or 500 to 3000 meters