mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement and match CPlayerPed::SetHealth(...)
This commit is contained in:
parent
e2ee3d3a3b
commit
1865de083f
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user