mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Match CPlayerPed::SetArmedWeapon(...)
This commit is contained in:
parent
a75303c645
commit
d35afe824d
@ -358,7 +358,9 @@ void CPlayerPed::SetArmedWeapon(int iWeaponType, bool bUnk)
|
||||
GameStoreLocalPlayerWeaponSkills();
|
||||
GameSetRemotePlayerWeaponSkills(m_bytePlayerNumber);
|
||||
|
||||
if(m_pPed && IN_VEHICLE(m_pPed) || bUnk)
|
||||
if((!m_pPed || !IN_VEHICLE(m_pPed)) && !bUnk)
|
||||
ScriptCommand(&set_actor_armed_weapon,m_dwGTAId,iWeaponType);
|
||||
else
|
||||
{
|
||||
DWORD dwPedPtr = (DWORD)m_pPed;
|
||||
if(dwPedPtr) {
|
||||
@ -368,8 +370,6 @@ void CPlayerPed::SetArmedWeapon(int iWeaponType, bool bUnk)
|
||||
_asm call edx
|
||||
}
|
||||
}
|
||||
else
|
||||
ScriptCommand(&set_actor_armed_weapon,m_dwGTAId,iWeaponType);
|
||||
|
||||
GameSetLocalPlayerWeaponSkills();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user