mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match CPlayerPed::RemoveWeaponWhenEnteringVehicle()
This commit is contained in:
@ -399,6 +399,20 @@ void CPlayerPed::SetArmedWeapon(int iWeaponType, bool bUnk)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
void CPlayerPed::RemoveWeaponWhenEnteringVehicle()
|
||||||
|
{
|
||||||
|
DWORD dwPedPtr = (DWORD)m_pPed;
|
||||||
|
|
||||||
|
if(dwPedPtr) {
|
||||||
|
_asm mov ecx, dwPedPtr
|
||||||
|
_asm push 0
|
||||||
|
_asm mov edx, 0x5E6370
|
||||||
|
_asm call edx
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
WEAPON_SLOT_TYPE * CPlayerPed::GetCurrentWeaponSlot()
|
WEAPON_SLOT_TYPE * CPlayerPed::GetCurrentWeaponSlot()
|
||||||
{
|
{
|
||||||
if(m_pPed) {
|
if(m_pPed) {
|
||||||
|
@ -48,6 +48,7 @@ public:
|
|||||||
void GiveWeapon(int iWeaponID, int iAmmo);
|
void GiveWeapon(int iWeaponID, int iAmmo);
|
||||||
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
||||||
void ClearAllWeapons();
|
void ClearAllWeapons();
|
||||||
|
void RemoveWeaponWhenEnteringVehicle();
|
||||||
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
||||||
WEAPON_SLOT_TYPE * FindWeaponSlot(DWORD dwWeapon);
|
WEAPON_SLOT_TYPE * FindWeaponSlot(DWORD dwWeapon);
|
||||||
BOOL HasAmmoForCurrentWeapon();
|
BOOL HasAmmoForCurrentWeapon();
|
||||||
|
Reference in New Issue
Block a user