diff --git a/server/gangzonepool.cpp b/server/gangzonepool.cpp index 8d5978b..0a3adc0 100644 --- a/server/gangzonepool.cpp +++ b/server/gangzonepool.cpp @@ -71,3 +71,10 @@ void CGangZonePool::HideForPlayer(PLAYERID playerId, WORD wZone) pNetGame->SendToPlayer(RPC_ScrRemoveGangZone, &bsParams, playerId, 2); } +void CGangZonePool::HideForAll(WORD wZone) +{ + RakNet::BitStream bsParams; + bsParams.Write(wZone); + pNetGame->BroadcastData(RPC_ScrRemoveGangZone, &bsParams, INVALID_PLAYER_ID, 2); +} + diff --git a/server/gangzonepool.h b/server/gangzonepool.h index ae8b522..a063e43 100644 --- a/server/gangzonepool.h +++ b/server/gangzonepool.h @@ -17,6 +17,7 @@ public: void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor); void ShowForAll(WORD wZone, DWORD dwColor); void HideForPlayer(PLAYERID playerId, WORD wZone); + void HideForAll(WORD wZone); }; //----------------------------------------------------