mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[saco] Implement/match CVehicle::SetHealth(...)
This commit is contained in:
@ -100,3 +100,12 @@ float CVehicle::GetHealth()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CVehicle::SetHealth(float fHealth)
|
||||
{
|
||||
if(m_pVehicle) {
|
||||
m_pVehicle->fHealth = fHealth;
|
||||
}
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
|
@ -23,6 +23,7 @@ public:
|
||||
void SetLockedState(int iLocked);
|
||||
|
||||
float GetHealth();
|
||||
void SetHealth(float fHealth);
|
||||
|
||||
BOOL HasADriver();
|
||||
|
||||
|
Reference in New Issue
Block a user