Making Weapon and Ammo difference
#6

Quote:
Originally Posted by MP2
Посмотреть сообщение
Also, you only need one line:

GivePlayerWeapon(playerid, GetPlayerWeapon(playerid), 100);

If I were you I'd make an array with two values - min. ammo and price. i.e. deagle has 7 ammo, /buyammo should give you 7 ammo and you should set a price for that.
Ideally yes, but it would be hard to explain to a beginner and I don't want people to think that asking for help leads to a personalized script. You start by scripting a basic array then progress to large arrays or enumerations. That's how I did it.
Reply


Messages In This Thread
Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 04:23
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:30
Re: Making Weapon and Ammo difference - by MP2 - 23.04.2012, 04:32
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:34
Re: Making Weapon and Ammo difference - by MP2 - 23.04.2012, 04:40
Re: Making Weapon and Ammo difference - by Yuryfury - 23.04.2012, 04:50
Re: Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 04:59
Re: Making Weapon and Ammo difference - by MrEnd - 23.04.2012, 07:33
Re: Making Weapon and Ammo difference - by Ballu Miaa - 23.04.2012, 11:43
Re: Making Weapon and Ammo difference - by Deviant96 - 23.04.2012, 15:53

Forum Jump:


Users browsing this thread: 1 Guest(s)