Quote:
Originally Posted by UltraScripter
ohh sorry my bad hare's the code :
pawn Код:
//the save dini_IntSet(File, "Weapons", GetPlayerWeapon(playerid)); dini_IntSet(File, "Ammo", GetPlayerAmmo(playerid));
new weapon = dini_Int(File, "Weapons"); new ammo = dini_Int(File, "Ammo"); GivePlayerWeapon(playerid, weapon, ammo); //Giving Player Weapon
|
Well, I believe you would have to make one 'Weapon' and one 'Ammo' per weapon. (i.e: Weapon1, Weapon2, Ammo1, Ammo2, etc)
Also, using GetPlayerWeapon() will only get the weapon that the player is having in his hands.
Use:
https://sampwiki.blast.hk/wiki/GetPlayerWeaponData