23.04.2012, 04:40
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.
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.