[saco] Implement and match CPlayerPed::IsDead()

This commit is contained in:
RD42 committed 2024-05-05 22:14:11 +08:00
1 parent c5eb9a8421
commit a7f29efcef
2 files changed
+10

No files matched your search

+9
View File
@@ -219,6 +219,15 @@ void CPlayerPed::SetStateFlags(DWORD 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)