mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Implement/match n_GangZoneShowForPlayer(...)
This commit is contained in:
parent
64603baa21
commit
83f1876545
@ -605,10 +605,14 @@ static cell AMX_NATIVE_CALL n_GangZoneDestroy(AMX *amx, cell *params)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// native GangZoneShowForPlayer(playerid, zone, color)
|
||||||
static cell AMX_NATIVE_CALL n_GangZoneShowForPlayer(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_GangZoneShowForPlayer(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: GangZoneShowForPlayer
|
if (!pNetGame->GetPlayerPool()->GetSlotState(params[1])) return 0;
|
||||||
return 0;
|
CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool();
|
||||||
|
if (!pGangZonePool || !pGangZonePool->GetSlotState(params[2])) return 0;
|
||||||
|
pGangZonePool->ShowForPlayer(params[1], params[2], params[3]);
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static cell AMX_NATIVE_CALL n_GangZoneShowForAll(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_GangZoneShowForAll(AMX *amx, cell *params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user