Weapon saving
#3

you have to save it for each weapon slot. slot 0 can be brass knuckles or unarmed.
so do it like this:
Код:
new ammo, gun;
GetPlayerWeaponData(playerid,0,gun,ammo);
PlayerInfo[playerid][pGun0] = gun;
PlayerInfo[playerid][pGunAmmo0] = ammo;
GetPlayerWeaponData(playerid,1,gun,ammo);
PlayerInfo[playerid][pGun1] = gun;
PlayerInfo[playerid][pGunAmmo1] = ammo;
etc. till slot 12(max.)
This way it saves all weapons
Reply


Messages In This Thread
Weapon saving - by (Jeff) - 21.01.2010, 10:04
Re: Weapon saving - by lameguy - 21.01.2010, 10:10
Re: Weapon saving - by notime - 21.01.2010, 10:44
Re: Weapon saving - by Correlli - 21.01.2010, 12:57
Re: Weapon saving - by (Jeff) - 21.01.2010, 17:42
Re: Weapon saving - by ravi80k - 23.01.2010, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)