mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match CLocalPlayer::GetPlayerColorAsARGB()
This commit is contained in:
parent
b860b6a926
commit
becf308a1c
@ -99,3 +99,10 @@ DWORD CLocalPlayer::GetPlayerColorAsRGBA()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
DWORD CLocalPlayer::GetPlayerColorAsARGB()
|
||||
{
|
||||
return (TranslateColorCodeToRGBA(pNetGame->GetPlayerPool()->GetLocalPlayerID()) >> 8) | 0xFF000000;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
|
@ -98,6 +98,7 @@ public:
|
||||
|
||||
void SetPlayerColor(DWORD dwColor);
|
||||
DWORD GetPlayerColorAsRGBA();
|
||||
DWORD GetPlayerColorAsARGB();
|
||||
BOOL IsSpectating() { return m_bIsSpectating; };
|
||||
|
||||
void ReturnToClassSelection() { m_bWantsAnotherClass = TRUE; };
|
||||
|
Loading…
Reference in New Issue
Block a user