mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[saco] Implement/match CPlayerPed::IsFighting()
This commit is contained in:
1 parent
a7ffe33721
commit
975fdd589e
3 files changed
+20
No files matched your search
@@ -968,6 +968,17 @@ BOOL CPlayerPed::IsJumping()
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
BOOL CPlayerPed::IsFighting()
|
||||
{
|
||||
if(m_pPed && !IN_VEHICLE(m_pPed) && m_pPed->Tasks->pdwFighting)
|
||||
{
|
||||
return GetTaskTypeFromTask(m_pPed->Tasks->pdwFighting) == 1016;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::StartJetpack()
|
||||
{
|
||||
if(!m_pPed) return;
|
||||
|
||||
Reference in new issue
Block a user