mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-06 01:23:30 +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)
|
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||||
{
|
{
|
||||||
if(!m_pPed) return;
|
if(!m_pPed) return;
|
||||||
|
@ -29,6 +29,7 @@ public:
|
|||||||
int GetCurrentVehicleID();
|
int GetCurrentVehicleID();
|
||||||
BOOL IsOnScreen();
|
BOOL IsOnScreen();
|
||||||
float GetHealth();
|
float GetHealth();
|
||||||
|
void SetHealth(float fHealth);
|
||||||
|
|
||||||
WORD GetAmmo();
|
WORD GetAmmo();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user