[server] Implement/match n_GangZoneHideForAll(...)

This commit is contained in:
RD42 2024-09-22 20:49:35 +08:00
parent 3ceaacfb93
commit d7dfb6a6ae

View File

@ -634,10 +634,13 @@ static cell AMX_NATIVE_CALL n_GangZoneHideForPlayer(AMX *amx, cell *params)
return 1; return 1;
} }
// native GangZoneHideForAll(zone)
static cell AMX_NATIVE_CALL n_GangZoneHideForAll(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_GangZoneHideForAll(AMX *amx, cell *params)
{ {
// TODO: GangZoneHideForAll CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool();
return 0; if (!pGangZonePool || !pGangZonePool->GetSlotState(params[1])) return 0;
pGangZonePool->HideForAll(params[1]);
return 1;
} }
static cell AMX_NATIVE_CALL n_GangZoneFlashForPlayer(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_GangZoneFlashForPlayer(AMX *amx, cell *params)