mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match CGangZonePool::FlashForAll(...)
This commit is contained in:
parent
50cd412a00
commit
cbc0c870be
@ -87,3 +87,12 @@ void CGangZonePool::FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor)
|
||||
pNetGame->SendToPlayer(RPC_ScrFlashGangZone, &bsParams, playerId, 2);
|
||||
}
|
||||
|
||||
void CGangZonePool::FlashForAll(WORD wZone, DWORD dwColor)
|
||||
{
|
||||
RakNet::BitStream bsParams;
|
||||
bsParams.Write(wZone);
|
||||
dwColor = RGBA_ABGR(dwColor);
|
||||
bsParams.Write(dwColor);
|
||||
pNetGame->BroadcastData(RPC_ScrFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2);
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,7 @@ public:
|
||||
void HideForPlayer(PLAYERID playerId, WORD wZone);
|
||||
void HideForAll(WORD wZone);
|
||||
void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
||||
void FlashForAll(WORD wZone, DWORD dwColor);
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user