mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement/match CPlayerPed::SetWeaponAmmo; it writes the slot ammo found by FindWeaponSlot
This commit is contained in:
@@ -1300,6 +1300,16 @@ CPlayerPed::~CPlayerPed()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::SetWeaponAmmo(BYTE byteWeapon, WORD wAmmo)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
WEAPON_SLOT_TYPE *pSlot = FindWeaponSlot(byteWeapon);
|
||||
if(pSlot) pSlot->dwAmmo = wAmmo;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::Destroy()
|
||||
{
|
||||
DWORD dwPedPtr = (DWORD)m_pPed;
|
||||
|
||||
@@ -164,6 +164,7 @@ public:
|
||||
void SetShopName(char *szNewShopName);
|
||||
|
||||
void SetWeaponSkillLevel(int iSkill, WORD wLevel);
|
||||
void SetWeaponAmmo(BYTE byteWeapon, WORD wAmmo); // .text:100B0080
|
||||
|
||||
VECTOR* GetBonePosition(int iBone, VECTOR *vecPos);
|
||||
VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset);
|
||||
|
||||
Reference in New Issue
Block a user