mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement and match CPlayerPed::IsOnScreen()
This commit is contained in:
parent
492705d035
commit
a14828960b
@ -155,6 +155,14 @@ void CPlayerPed::HideMarker()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CPlayerPed::IsOnScreen()
|
||||
{
|
||||
if(m_pPed) return GameIsEntityOnScreen((DWORD *)m_pPed);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
@ -27,6 +27,7 @@ public:
|
||||
void HideMarker();
|
||||
BYTE GetCurrentWeapon();
|
||||
int GetCurrentVehicleID();
|
||||
BOOL IsOnScreen();
|
||||
|
||||
WORD GetAmmo();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user