mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[server] Implement/match n_GangZoneStopFlashForAll(...)
This commit is contained in:
parent
90cfb31f62
commit
e4895f9fbb
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user