mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[server] Implement/match n_GangZoneFlashForPlayer(...)
This commit is contained in:
parent
d7dfb6a6ae
commit
0e1631b86f
@ -643,10 +643,14 @@ static cell AMX_NATIVE_CALL n_GangZoneHideForAll(AMX *amx, cell *params)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// native GangZoneFlashForPlayer(playerid, zone, flashcolor)
|
||||||
static cell AMX_NATIVE_CALL n_GangZoneFlashForPlayer(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_GangZoneFlashForPlayer(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: GangZoneFlashForPlayer
|
if (!pNetGame->GetPlayerPool()->GetSlotState(params[1])) return 0;
|
||||||
return 0;
|
CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool();
|
||||||
|
if (!pGangZonePool || !pGangZonePool->GetSlotState(params[2])) return 0;
|
||||||
|
pGangZonePool->FlashForPlayer(params[1], params[2], params[3]);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL n_GangZoneFlashForAll(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_GangZoneFlashForAll(AMX *amx, cell *params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user