Ammo help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ammo help (
/showthread.php?tid=362731)
Ammo help -
Marusa - 25.07.2012
Is there any way to recognize when player spend all ammo from one weapon ??
AW: Ammo help -
dalkgamler - 25.07.2012
maybe GetPlayerAmmo in onplayer update
Re: Ammo help -
DeathOnaStick - 25.07.2012
Yes it is.
You can use
GetPlayerWeaponData for that.
I implemented something like that into my anti-cheat script to reset the weapon permission when the ammo is empty.