mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 12:16:15 +08:00
[server] Implement/match CPlayer::SetPlayerColor(...)
This commit is contained in:
@ -23,7 +23,19 @@ void CPlayer::SetSpawnInfo(PLAYER_SPAWN_INFO *pSpawn)
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CPlayer::SetPlayerColor(DWORD dwColor)
|
||||
{
|
||||
RakNet::BitStream bsColor;
|
||||
|
||||
m_dwColor = dwColor;
|
||||
|
||||
bsColor.Write(m_PlayerID);
|
||||
bsColor.Write(dwColor);
|
||||
|
||||
pNetGame->BroadcastData(RPC_ScrSetPlayerColor, &bsColor, INVALID_PLAYER_ID, 2);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user