From 5a5a62f634eaf998573c28a5ad96bcbfdfb6e65b Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:50:20 +0800 Subject: [PATCH] [server] Implement/match `n_GangZoneFlashForAll(...)` --- server/scrcustom.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index 5345bf6..f490a18 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -653,10 +653,13 @@ static cell AMX_NATIVE_CALL n_GangZoneFlashForPlayer(AMX *amx, cell *params) return 1; } +// native GangZoneFlashForAll(zone, flashcolor) static cell AMX_NATIVE_CALL n_GangZoneFlashForAll(AMX *amx, cell *params) { - // TODO: GangZoneFlashForAll - return 0; + CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool(); + if (!pGangZonePool || !pGangZonePool->GetSlotState(params[1])) return 0; + pGangZonePool->FlashForAll(params[1], params[2]); + return 1; } static cell AMX_NATIVE_CALL n_GangZoneStopFlashForPlayer(AMX *amx, cell *params)