Quote:
Originally Posted by SilencedPistol
I know how to adjust the damage, but, is there a way to adjust the weapon range? Such as...
pawn Код:
new Float:x, Float:y, Float:z; if(WeaponRange(playerid, 2.0, x, y, z) { DAMAGE CODE HERE, ETC return 1; }
Like, I want to know if you can adjust the range the weapons shoot. So let's say a deagle shoots 10 meters and deals 10 damage, is there a way to adjust it so that it can only shoot 5 meters? It's a difficult way to phrase it, but I believe it can be done?
|
To lower the weapon shooting range I'd check the distance between the two players: if they are too distant then give the player some health back and clear animations.