mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement/match CPlayerPed::RemoveWeaponWhenEnteringVehicle()
This commit is contained in:
parent
7cda157fd9
commit
c739657b56
@ -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()
|
||||
{
|
||||
if(m_pPed) {
|
||||
|
@ -48,6 +48,7 @@ public:
|
||||
void GiveWeapon(int iWeaponID, int iAmmo);
|
||||
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
||||
void ClearAllWeapons();
|
||||
void RemoveWeaponWhenEnteringVehicle();
|
||||
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
||||
WEAPON_SLOT_TYPE * FindWeaponSlot(DWORD dwWeapon);
|
||||
BOOL HasAmmoForCurrentWeapon();
|
||||
|
Loading…
x
Reference in New Issue
Block a user