diff --git a/server/gangzonepool.cpp b/server/gangzonepool.cpp index 18d953b..b4903a6 100644 --- a/server/gangzonepool.cpp +++ b/server/gangzonepool.cpp @@ -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); +} + diff --git a/server/gangzonepool.h b/server/gangzonepool.h index 89a83ec..fb831a6 100644 --- a/server/gangzonepool.h +++ b/server/gangzonepool.h @@ -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); }; //----------------------------------------------------