GivePlayerWeapon
#1

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.
Reply
#2

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).
Reply
#3

The maximum ammo is 65535.
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)