mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-20 20:56:07 +08:00
[saco] Implement/match CLocalPlayer::GetPlayerColorAsRGBA()
This commit is contained in:
@ -92,3 +92,10 @@ void CLocalPlayer::SetPlayerColor(DWORD dwColor)
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
DWORD CLocalPlayer::GetPlayerColorAsRGBA()
|
||||||
|
{
|
||||||
|
return TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID());
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
@ -97,6 +97,7 @@ public:
|
|||||||
void Say(PCHAR szText);
|
void Say(PCHAR szText);
|
||||||
|
|
||||||
void SetPlayerColor(DWORD dwColor);
|
void SetPlayerColor(DWORD dwColor);
|
||||||
|
DWORD GetPlayerColorAsRGBA();
|
||||||
BOOL IsSpectating() { return m_bIsSpectating; };
|
BOOL IsSpectating() { return m_bIsSpectating; };
|
||||||
|
|
||||||
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };
|
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };
|
||||||
|
Reference in New Issue
Block a user