mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[saco] Implement and match CPlayerPed::IsDead()
This commit is contained in:
parent
c5eb9a8421
commit
a7f29efcef
@ -219,6 +219,15 @@ void CPlayerPed::SetStateFlags(DWORD dwState)
|
|||||||
m_pPed->dwStateFlags = dwState;
|
m_pPed->dwStateFlags = dwState;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
BOOL CPlayerPed::IsDead()
|
||||||
|
{
|
||||||
|
if(!m_pPed) return TRUE;
|
||||||
|
if(m_pPed->fHealth > 0.0f) return FALSE;
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||||
|
@ -34,6 +34,7 @@ public:
|
|||||||
void SetArmour(float fArmour);
|
void SetArmour(float fArmour);
|
||||||
DWORD GetStateFlags();
|
DWORD GetStateFlags();
|
||||||
void SetStateFlags(DWORD dwStateFlags);
|
void SetStateFlags(DWORD dwStateFlags);
|
||||||
|
BOOL IsDead();
|
||||||
|
|
||||||
WORD GetAmmo();
|
WORD GetAmmo();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user