diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index 1137d11..60374e8 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -25,7 +25,7 @@ CPlayerPed::CPlayerPed() field_2A8 = 1; field_2AC = 1; - field_2CD = 0; + m_dwArrow = 0; field_2B9 = 0; field_2F2 = 0; field_2D2 = 0; @@ -147,6 +147,14 @@ int CPlayerPed::GetCurrentVehicleID() //----------------------------------------------------------- +void CPlayerPed::HideMarker() +{ + if (m_dwArrow) ScriptCommand(&disable_marker, m_dwArrow); + m_dwArrow = NULL; // Just make sure +} + +//----------------------------------------------------------- + void CPlayerPed::GiveWeapon(int iWeaponID, int iAmmo) { if(!m_pPed) return; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 85ad8d9..20f80b8 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -24,6 +24,7 @@ public: CAMERA_AIM * GetCurrentAim(); void SetCurrentAim(CAMERA_AIM *pAim); + void HideMarker(); BYTE GetCurrentWeapon(); int GetCurrentVehicleID(); @@ -59,7 +60,7 @@ public: int field_2C1; int field_2C5; int field_2C9; - int field_2CD; + DWORD m_dwArrow; char _gap2D1;