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

This commit is contained in:
RD42 2024-09-22 20:51:03 +08:00
parent 90cfb31f62
commit e4895f9fbb

View File

@ -672,12 +672,17 @@ static cell AMX_NATIVE_CALL n_GangZoneStopFlashForPlayer(AMX *amx, cell *params)
return 1;
}
// native GangZoneStopFlashForAll(zone)
static cell AMX_NATIVE_CALL n_GangZoneStopFlashForAll(AMX *amx, cell *params)
{
// TODO: GangZoneStopFlashForAll
return 0;
CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool();
if (!pGangZonePool || !pGangZonePool->GetSlotState(params[1])) return 0;
pGangZonePool->StopFlashForAll(params[1]);
return 1;
}
//----------------------------------------------------------------------------------
// native IsPlayerAdmin(playerid)
static cell AMX_NATIVE_CALL n_IsPlayerAdmin(AMX *amx, cell *params)
{