How to make weapons have limited amount of 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: How to make weapons have limited amount of ammo? (
/showthread.php?tid=444472)
How to make weapons have limited amount of ammo? -
Grooty - 16.06.2013
How? Right now all weapons have unlimited ammo, and I want to make my server strict RP.
Re: How to make weapons have limited amount of ammo? -
Mattakil - 16.06.2013
just set the ammo on your gun when spawning it?
Re: How to make weapons have limited amount of ammo? -
Donvalley - 17.06.2013
https://sampwiki.blast.hk/wiki/Function:GivePlayerWeapon
For Example
pawn Код:
GivePlayerWeapon(playerid, 33, 100);
player now has weapon 33 (Rifle) and 100 ammo