From 4864e3c8665d4540685714d2dbac35907d99cb85 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:49:00 +0800 Subject: [PATCH] [server] Implement/match `n_GangZoneShowForAll(...)` --- server/scrcustom.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index d0d6990..8e3e381 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -615,10 +615,13 @@ static cell AMX_NATIVE_CALL n_GangZoneShowForPlayer(AMX *amx, cell *params) return 1; } +// native GangZoneShowForAll(zone, color) static cell AMX_NATIVE_CALL n_GangZoneShowForAll(AMX *amx, cell *params) { - // TODO: GangZoneShowForAll - return 0; + CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool(); + if (!pGangZonePool || !pGangZonePool->GetSlotState(params[1])) return 0; + pGangZonePool->ShowForAll(params[1], params[2]); + return 1; } static cell AMX_NATIVE_CALL n_GangZoneHideForPlayer(AMX *amx, cell *params)