SA-MP Forums Archive
[AJUDA] Gang Zones - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Gang Zones (/showthread.php?tid=341211)



[AJUDA] Gang Zones - Micael.Nees - 09.05.2012

Ae galera, tava querendo mudar as GG'z de lugar, por exemplo:
pawn Код:
GZSkate = GangZoneCreate(1861.9410,-1450.6462,1976.5867,-1351.4069);
Essa linha faz a GG, queria mudar ela de lugar, como faзo para mudar ela de lugar [A GG] ?


Re: [AJUDA] Gang Zones - mau.tito - 09.05.2012

mude as coord...

nao e GG e GZ!



Re: [AJUDA] Gang Zones - ViniBorn - 09.05.2012

Basta trocar as coordenadas seguinto o seguinte padrгo

menorx, menory, maiorx, ymaior

wiki.sa-mp.com/wiki/GangZoneCreate


Re: [AJUDA] Gang Zones - Micael.Nees - 09.05.2012

Nao entendi muito bem, como eu seto a expansao?


Re: [AJUDA] Gang Zones - mau.tito - 09.05.2012

Devera te ajudar
https://sampforum.blast.hk/showthread.php?tid=164588



Re: [AJUDA] Gang Zones - ViniBorn - 09.05.2012

Quanto maior for a diferenзa entre as coordenadas X, maior serб a 'largura'.
Quanto maior for a diferenзa entre as coordenadas Y, maior serб a 'altura'.


Re: [AJUDA] Gang Zones - Micael.Nees - 09.05.2012

Entendi, e como eu verifico se o player esta dentro deste local?


Re: [AJUDA] Gang Zones - ViniBorn - 09.05.2012

pawn Код:
stock IsPlayerInGZ(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >=  MENORX && y >= MENORY && x <= MAIORX && y <= MAIORY) return 1;
    else return 0;
}