mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match CGangZonePool::HideForPlayer((...)
This commit is contained in:
parent
7c2b514eb2
commit
72c438d0a5
@ -64,3 +64,10 @@ void CGangZonePool::ShowForAll(WORD wZone, DWORD dwColor)
|
|||||||
pNetGame->BroadcastData(RPC_ScrAddGangZone, &bsParams, INVALID_PLAYER_ID, 2);
|
pNetGame->BroadcastData(RPC_ScrAddGangZone, &bsParams, INVALID_PLAYER_ID, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGangZonePool::HideForPlayer(PLAYERID playerId, WORD wZone)
|
||||||
|
{
|
||||||
|
RakNet::BitStream bsParams;
|
||||||
|
bsParams.Write(wZone);
|
||||||
|
pNetGame->SendToPlayer(RPC_ScrRemoveGangZone, &bsParams, playerId, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ public:
|
|||||||
void Delete(WORD wZone);
|
void Delete(WORD wZone);
|
||||||
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
void ShowForPlayer(PLAYERID playerId, WORD wZone, DWORD dwColor);
|
||||||
void ShowForAll(WORD wZone, DWORD dwColor);
|
void ShowForAll(WORD wZone, DWORD dwColor);
|
||||||
|
void HideForPlayer(PLAYERID playerId, WORD wZone);
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user