mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 19:53:04 +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