Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Detecting holding a weapon and using it at the same time

$
0
0
Hey there,

I can detect if the player is holding a weapon but I can't detect if he is using it or not. I'm working on a damage system and I need to detect if the player shoots with the weapon he's holding because when the shooter gets closer to the target and tries to shoot him, he doesn't use the weapon and hits the target with hand and it still detects the weapon so it's an issue for my damage system.

EDIT: I tried to get the animation name the ped does whilst hitting with a gun, not shooting but it's not a different animation or I was not able to get the name of it.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>