Advanced weapons.
#10

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.
Reply


Messages In This Thread
Advanced weapons. - by SilencedPistol - 16.07.2013, 21:40
Re: Advanced weapons. - by arjanforgames - 16.07.2013, 22:45
Re: Advanced weapons. - by Scenario - 16.07.2013, 22:48
Re: Advanced weapons. - by SilencedPistol - 16.07.2013, 23:36
Re: Advanced weapons. - by SilencedPistol - 17.07.2013, 17:57
Re: Advanced weapons. - by Scenario - 17.07.2013, 18:07
Re: Advanced weapons. - by SilencedPistol - 17.07.2013, 20:07
Re: Advanced weapons. - by Bakr - 17.07.2013, 20:28
Re: Advanced weapons. - by SilencedPistol - 18.07.2013, 14:58
Re: Advanced weapons. - by Sasino97 - 18.07.2013, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)