mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Match CPlayerPed::SetArmedWeapon(...)
This commit is contained in:
1 parent
a75303c645
commit
d35afe824d
1 file changed
+3
-3
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user