Raised This Month: $ Target: $400
 0% 

[Help] Adding Minimum Distance


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Agent3554
Junior Member
Join Date: Aug 2020
Old 05-26-2021 , 21:01   [Help] Adding Minimum Distance
Reply With Quote #1

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(idtarget)) 

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
Agent3554 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode