Weapons Saving (dini)
#4

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
Reply


Messages In This Thread
Weapons Saving (dini) - by UltraScripter - 23.11.2014, 16:02
Re: Weapons Saving (dini) - by OsteeN - 23.11.2014, 16:07
Re: Weapons Saving (dini) - by UltraScripter - 23.11.2014, 16:14
Re: Weapons Saving (dini) - by OsteeN - 23.11.2014, 16:26
Re: Weapons Saving (dini) - by UltraScripter - 23.11.2014, 16:30
Re: Weapons Saving (dini) - by OsteeN - 23.11.2014, 16:31
Re: Weapons Saving (dini) - by UltraScripter - 23.11.2014, 16:34

Forum Jump:


Users browsing this thread: 2 Guest(s)