mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
[saco] Implement/match CPlayerPed::ShowMarker(...)
This commit is contained in:
parent
15ab1d056a
commit
9e6ae8204f
@ -1,5 +1,11 @@
|
||||
|
||||
|
||||
#include <windows.h>
|
||||
#include <assert.h>
|
||||
#define _ASSERT assert
|
||||
|
||||
#include "../main.h"
|
||||
#include "game.h"
|
||||
#include "util.h"
|
||||
#include "keystuff.h"
|
||||
#include "task.h"
|
||||
@ -382,7 +388,6 @@ BYTE CPlayerPed::GetSpecialKey()
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
CAMERA_AIM * CPlayerPed::GetCurrentAim()
|
||||
@ -419,6 +424,17 @@ int CPlayerPed::GetCurrentVehicleID()
|
||||
return GamePool_Vehicle_GetIndex(pVehicle);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
// Shows the normal marker
|
||||
|
||||
void CPlayerPed::ShowMarker(int iMarkerColorID)
|
||||
{
|
||||
if (m_dwArrow) HideMarker();
|
||||
ScriptCommand(&create_arrow_above_actor, m_dwGTAId, &m_dwArrow);
|
||||
ScriptCommand(&set_marker_color, m_dwArrow, iMarkerColorID);
|
||||
ScriptCommand(&show_on_radar2, m_dwArrow, 2);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------
|
||||
|
||||
void CPlayerPed::HideMarker()
|
||||
|
@ -34,6 +34,7 @@ public:
|
||||
return GameGetPlayerCameraMode(m_bytePlayerNumber);
|
||||
};
|
||||
|
||||
void ShowMarker(int iMarkerColorID);
|
||||
void HideMarker();
|
||||
BYTE GetCurrentWeapon();
|
||||
int GetCurrentVehicleID();
|
||||
|
Loading…
Reference in New Issue
Block a user