SA-MP Forums Archive
[AJUDA] PROBLEMA COM GZ - 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] PROBLEMA COM GZ (/showthread.php?tid=277456)



[AJUDA] PROBLEMA COM GZ - Darconian - 18.08.2011

Entгo... eu criei uma GZ no cemitйrio... tudo correto, ao compilar nao deu erro nem nada.
Porйm, quando eu vou no jogo, e tento dar /do , ele diz que nгo estou em uma GangZone... E agora estб acontecendo com todas as GZ do server...
Antes de eu criar a GZ do cemiterio, todas funcionavam...

ai estгo as coordenadas da GZ Cemitйrio:

Quote:

GZCemiterio = GangZoneCreate(951.8549,-1130.0609, 807.1371,-1072.6678);

Quote:

stock IsPlayerInCemiterio(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 951.8549 && y >= -1130.0609 && x <= 807.1371 && y <= -1072.6678) return 1;
else return 0;
}

Se quiserem, eu posto o das outras GZ...


Re: [AJUDA] PROBLEMA COM GZ - ViniBorn - 18.08.2011

pawn Код:
stock IsPlayerInCemiterio(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    if(x >= 807.1371 && y >= -1130.0609 && x <= 951.8549 && y <= -1072.6678) return 1;
    else return 0;
}



Re: [AJUDA] PROBLEMA COM GZ - Darconian - 18.08.2011

Terei que colocar tambйm essas coordenadas
Quote:

if(x >= 807.1371 && y >= -1130.0609 && x <= 951.8549 && y <= -1072.6678) return 1;

No GangZoneCreate?


Re: [AJUDA] PROBLEMA COM GZ - ViniBorn - 18.08.2011

Edit:


Vocк tambйm tб criando a GZ errado.
Coloca assim

pawn Код:
GZCemiterio = GangZoneCreate(807.1371,-1130.0609, 951.8549,-1072.6678);



Re: [AJUDA] PROBLEMA COM GZ - Darconian - 18.08.2011

Aee, mas funcionou com o meu GangZoneCreate e o seu stock '-'


Re: [AJUDA] PROBLEMA COM GZ - ViniBorn - 18.08.2011

Vai por mim, sua GZ tб errada, dependendo do local em que vocк esteja, ela vai aparecer toda torta.


Re: [AJUDA] PROBLEMA COM GZ - Darconian - 18.08.2011

Vou trocar entгo... й que eu peguei essas coord no /save '-'

Ainda preciso cria a GZ Shoping, GZ Parque Glen .. ;x


Re: [AJUDA] PROBLEMA COM GZ - ViniBorn - 18.08.2011

O formato correto de criar й assim :

X-Menor , Y-Menor , X-Maior , Y-Maior

Tome cuidado tambйm com os nъmeros negativos.
Lembre que quanto "maior" eles forem, "menor" serгo !


Re: [AJUDA] PROBLEMA COM GZ - Darconian - 18.08.2011

Ok, vou me lembrar disso! Muito obrigado pela ajuda... +REP


Re: [AJUDA] PROBLEMA COM GZ - ViniBorn - 18.08.2011

Boa sorte ; )