mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Implement and match CPlayerPed::IsDead()
This commit is contained in:
1 parent
c5eb9a8421
commit
a7f29efcef
2 files changed
+10
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user