mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement/match CVehicle::GetHealth()
This commit is contained in:
parent
f1febb6911
commit
91d7bff083
@ -92,3 +92,11 @@ void CVehicle::SetEngineState(BOOL bState)
|
|||||||
|
|
||||||
//-----------------------------------------------------------
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
float CVehicle::GetHealth()
|
||||||
|
{
|
||||||
|
if(m_pVehicle) return m_pVehicle->fHealth;
|
||||||
|
else return 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ public:
|
|||||||
|
|
||||||
void SetLockedState(int iLocked);
|
void SetLockedState(int iLocked);
|
||||||
|
|
||||||
|
float GetHealth();
|
||||||
|
|
||||||
BOOL HasADriver();
|
BOOL HasADriver();
|
||||||
|
|
||||||
void SetEngineState(BOOL bState);
|
void SetEngineState(BOOL bState);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user