SA-MP Forums Archive
GivePlayerWeapon - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GivePlayerWeapon (/showthread.php?tid=94882)



GivePlayerWeapon - ilikepie2221 - 01.09.2009

pawn Код:
GivePlayerWeapon(playerid,3,1);
GivePlayerWeapon(playerid,24,1000);
Yeah, is there a way to set the deagle to have infinite ammo like in SA:RP? Same for the nightstick. Also, whenever I get the weapon while testing, if I try to scroll to these weapons, it just goes straight to fists, I can't use the weapons.


Re: GivePlayerWeapon - Sergei - 01.09.2009

Just add 999999 ammo and it will be unlimited.
And about scrolling, you have put your code under a function which is called very frequently, so it gives you weapons all the time and result ischaning your active weapon slot ot 0 (fists).


Re: GivePlayerWeapon - MenaceX^ - 01.09.2009

The maximum ammo is 65535.


Re: GivePlayerWeapon - MadeMan - 01.09.2009

Quote:
Originally Posted by ilikepie2221
Yeah, is there a way to set the deagle to have infinite ammo like in SA:RP? Same for the nightstick.
I think you have infinite ammo for nightstick anyway


Re: GivePlayerWeapon - [XST]O_x - 01.09.2009

Do it like
Код:
GivePlayerWeapon(playerid,weaponid,9999999);
i did it and i have infinite ammo