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

This commit is contained in:
RD42 2024-09-21 22:24:44 +08:00
parent cbc0c870be
commit 943fc3e5e8
2 changed files with 8 additions and 0 deletions

View File

@ -96,3 +96,10 @@ void CGangZonePool::FlashForAll(WORD wZone, DWORD dwColor)
pNetGame->BroadcastData(RPC_ScrFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2); pNetGame->BroadcastData(RPC_ScrFlashGangZone, &bsParams, INVALID_PLAYER_ID, 2);
} }
void CGangZonePool::StopFlashForPlayer(PLAYERID playerId, WORD wZone)
{
RakNet::BitStream bsParams;
bsParams.Write(wZone);
pNetGame->SendToPlayer(RPC_ScrStopFlashGangZone, &bsParams, playerId, 2);
}

View File

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