mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[server] Implement/match CGangZonePool::Delete(...)
This commit is contained in:
@ -25,3 +25,12 @@ WORD CGangZonePool::New(float fMinX, float fMinY, float fMaxX, float fMaxY)
|
|||||||
m_bSlotState[wZone] = TRUE;
|
m_bSlotState[wZone] = TRUE;
|
||||||
return wZone;
|
return wZone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGangZonePool::Delete(WORD wZone)
|
||||||
|
{
|
||||||
|
m_bSlotState[wZone] = FALSE;
|
||||||
|
RakNet::BitStream bsParams;
|
||||||
|
bsParams.Write(wZone);
|
||||||
|
pNetGame->BroadcastData(RPC_ScrRemoveGangZone, &bsParams, INVALID_PLAYER_ID, 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ public:
|
|||||||
CGangZonePool();
|
CGangZonePool();
|
||||||
~CGangZonePool() {};
|
~CGangZonePool() {};
|
||||||
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
WORD New(float fMinX, float fMinY, float fMaxX, float fMaxY);
|
||||||
|
void Delete(WORD wZone);
|
||||||
};
|
};
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user