SA-MP Forums Archive
ammoleft / all ammo. - 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: ammoleft / all ammo. (/showthread.php?tid=293642)



ammoleft / all ammo. - Baboon - 29.10.2011

Well,
How can I get the ammo that the player has left in his current weapon and the ammo that the player has left for that weapon?
Like you have at top right of your screen.

Like:

ammoleft / maxammoleft

Are there functions to get these 2 integers?


Re: ammoleft / all ammo. - park4bmx - 29.10.2011

check this out


Re: ammoleft / all ammo. - Baboon - 29.10.2011

uhm, thats all ammo left.
I also need to know how much is in the clip.


Re: ammoleft / all ammo. - park4bmx - 29.10.2011

Quote:
Originally Posted by timothyinthehouse
Посмотреть сообщение
uhm, thats all ammo left.
I also need to know how much is in the clip.
this will get you the current weapons thats sellected

quote from wiki
Код:
Get the weapon and ammo in a specific player's weapon slot.



Re: ammoleft / all ammo. - Baboon - 29.10.2011

I know, but thats this part (bolt part):

ammo in clip / max ammo left.