mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[server] Implement/match CGangZonePool::ShowForAll(...)
This commit is contained in:
@@ -51,3 +51,16 @@ void CGangZonePool::ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor)
|
|||||||
pNetGame->SendToPlayer(RPC_ScrAddGangZone, &bsParams, playerId, 2);
|
pNetGame->SendToPlayer(RPC_ScrAddGangZone, &bsParams, playerId, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGangZonePool::ShowForAll(WORD wZone, DWORD dwColor)
|
||||||
|
{
|
||||||
|
RakNet::BitStream bsParams;
|
||||||
|
bsParams.Write(wZone);
|
||||||
|
bsParams.Write(m_fGangZone[wZone][0]);
|
||||||
|
bsParams.Write(m_fGangZone[wZone][1]);
|
||||||
|
bsParams.Write(m_fGangZone[wZone][2]);
|
||||||
|
bsParams.Write(m_fGangZone[wZone][3]);
|
||||||
|
dwColor = RGBA_ABGR(dwColor);
|
||||||
|
bsParams.Write(dwColor);
|
||||||
|
pNetGame->BroadcastData(RPC_ScrAddGangZone, &bsParams, INVALID_PLAYER_ID, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ public:
|
|||||||
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
||||||
void Delete(WORD wZone);
|
void Delete(WORD wZone);
|
||||||
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
||||||
|
void ShowForAll(WORD wZone, DWORD dwColor);
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user