[server] Implement/match CGangZonePool::StopFlashForAll(...)

This commit is contained in:
RD42 2024-09-21 22:25:08 +08:00
parent 943fc3e5e8
commit 473e9a76e5
2 changed files with 7 additions and 0 deletions

@ -103,3 +103,9 @@ void CGangZonePool::StopFlashForPlayer(PLAYERID playerId, WORD wZone)
pNetGame->SendToPlayer(RPC_ScrStopFlashGangZone, &bsParams, playerId, 2);
}
void CGangZonePool::StopFlashForAll(WORD wZone)
{
RakNet::BitStream bsParams;
bsParams.Write(wZone);
pNetGame->BroadcastData(RPC_ScrStopFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2);
}

@ -21,6 +21,7 @@ public:
void FlashForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
void FlashForAll(WORD wZone, DWORD dwColor);
void StopFlashForPlayer(PLAYERID playerId, WORD wZone);
void StopFlashForAll(WORD wZone);
};
//----------------------------------------------------