mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[server] Implement/match n_GangZoneCreate(...)
This commit is contained in:
parent
5cd459179d
commit
64603baa21
@ -584,10 +584,16 @@ static cell AMX_NATIVE_CALL n_EnableZoneNames(AMX *amx, cell *params)
|
||||
return 1;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// native GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy)
|
||||
static cell AMX_NATIVE_CALL n_GangZoneCreate(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: GangZoneCreate
|
||||
return 0;
|
||||
CGangZonePool *pGangZonePool = pNetGame->GetGangZonePool();
|
||||
if (!pGangZonePool) return -1;
|
||||
WORD ret = pGangZonePool->New(amx_ctof(params[1]), amx_ctof(params[2]), amx_ctof(params[3]), amx_ctof(params[4]));
|
||||
if (ret == 0xFFFF) return -1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
// native GangZoneDestroy(zone)
|
||||
|
Loading…
Reference in New Issue
Block a user