how can i code that when a terrorist comes into the kniferange of a counterterrorist he gets slapped and when he leaves from his kniferange he stops being slapped.
and in what function could i use that best becous it should constantly check this.
kniferange being an amount in units set up through a cvar