21.01.2010, 10:44
you have to save it for each weapon slot. slot 0 can be brass knuckles or unarmed.
so do it like this:
etc. till slot 12(max.)
This way it saves all weapons
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;
This way it saves all weapons