Weapons Saving (dini)
#1

Hi, Guys I Need Weapon Save But Not 1 More Than 1 Weapons
Thx For Helping! .!
Reply
#2

Have you scripted anything? This section is for help and not for us to create scripts for you.
If you have, post your script.
Reply
#3

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
Reply
#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
#5

Ok thx for helping !.
Reply
#6

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
Ok thx for helping !.
Sure thing, post again if you need more help.
Reply
#7

Ok .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)