mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +08:00
[saco] Implement and match CPlayerPed::SetHealth(...)
This commit is contained in:
@@ -181,6 +181,14 @@ float CPlayerPed::GetHealth()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::SetHealth(float fHealth)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
m_pPed->fHealth = fHealth;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
@@ -29,6 +29,7 @@ public:
|
||||
int GetCurrentVehicleID();
|
||||
BOOL IsOnScreen();
|
||||
float GetHealth();
|
||||
void SetHealth(float fHealth);
|
||||
|
||||
WORD GetAmmo();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user