SetPlayerAmmo - 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: SetPlayerAmmo (
/showthread.php?tid=407028)
SetPlayerAmmo -
[rG]Cold - 12.01.2013
Hello.
How could i detect the weapons that a player holds and give them the ammount of ammo i want?
Like,if i have a M4,deagle and a spas,i want to give to those 150 ammo.
How do i do that?
NOTE: I have to detect the weapons that the player has on it.
Re: SetPlayerAmmo -
Infinity90 - 12.01.2013
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData
Re: SetPlayerAmmo -
[rG]Cold - 13.01.2013
So i just use that to check what guns player has on (in wich slots) then give it the ammo,right?