Weapon Ammo Limit PLEASE HELP
#1

ok, so basically im trying to make my script dynamic as possible, as the current state when a player gets a weapon he has unlimited ammo,

pawn Код:
GivePlayerValidWeapon(giveplayerid, 27, 60000);
now i could go through every line of code and change it to a set amount but thats not very easy, so i want something like this at the top of my script

pawn Код:
new unlimitedammo = 1
so basically if its set to 1 when a player gets a gun it will give them unlimited, but if its set to 0 when a player gets a gun it will give them the define ammount of ammo i have defined so i need help making this and the part where it gets the defined ammo ammounts please help asap.

EDIT: then can it be something like this
pawn Код:
GivePlayerValidWeapon(giveplayerid, 27, ammo);
The, ammo being the defined amount n shit

But yea i have no idea of how to do any of this , but if you help me make it and it works 100% il pay you
Reply


Messages In This Thread
Weapon Ammo Limit PLEASE HELP - by NinjaChicken - 07.08.2012, 11:52
Re: Weapon Ammo Limit PLEASE HELP - by Devilxz97 - 07.08.2012, 11:59
Re: Weapon Ammo Limit PLEASE HELP - by NinjaChicken - 07.08.2012, 12:04
Re: Weapon Ammo Limit PLEASE HELP - by shitbird - 07.08.2012, 12:17
Re: Weapon Ammo Limit PLEASE HELP - by you10 - 07.08.2012, 12:18
Re: Weapon Ammo Limit PLEASE HELP - by NinjaChicken - 07.08.2012, 20:46
Re: Weapon Ammo Limit PLEASE HELP - by NinjaChicken - 08.08.2012, 07:03
Re: Weapon Ammo Limit PLEASE HELP - by [KHK]Khalid - 08.08.2012, 07:28
Re: Weapon Ammo Limit PLEASE HELP - by NinjaChicken - 08.08.2012, 07:38
Re: Weapon Ammo Limit PLEASE HELP - by [KHK]Khalid - 08.08.2012, 07:46

Forum Jump:


Users browsing this thread: 3 Guest(s)