mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[saco] Implement and match CPlayerPed::IsInVehicle()
This commit is contained in:
@@ -244,6 +244,18 @@ void CPlayerPed::SetActionTrigger(BYTE byteTrigger)
|
||||
m_pPed->dwAction = byteTrigger;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CPlayerPed::IsInVehicle()
|
||||
{
|
||||
if(!m_pPed) return FALSE;
|
||||
|
||||
if(IN_VEHICLE(m_pPed)) {
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo)
|
||||
|
||||
@@ -35,6 +35,7 @@ public:
|
||||
DWORD GetStateFlags();
|
||||
void SetStateFlags(DWORD dwStateFlags);
|
||||
BOOL IsDead();
|
||||
BOOL IsInVehicle();
|
||||
BYTE GetActionTrigger();
|
||||
void SetActionTrigger(BYTE byteTrigger);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user