Quote Originally Posted by Toxys View Post
I didn't replaced the whole Callback_PlayerDamage function. Just added your code. But this is always displays "distance so long" no matter how far I shoot the enemy player.

I want to display the "distance so long" message if the player shoot away more than 1 meter from itself no matter if hitting the enemy or no.

One more question: Why I can't hit custom models? I can hit and kill the default american,german,russian, etc models... but if the enemy is choose for ex.: a brush model (e.g. brush_egypt_desert_1) I can't hit and kill him.
do you need the distance between the player and the bullet point of impact?

I don't know why this code doesn't work, how are you testing? maybe you always shoot at a distance of more than 1000?

do test script for value 100-250. bcs 1 - very small value: maybe it's impossible distance between players.
?? 1meter != 1 from distance(); ??