[DЪVIDA] Alterando as coordenadas da 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: [DЪVIDA] Alterando as coordenadas da GZ (
/showthread.php?tid=190849)
[DЪVIDA] Alterando as coordenadas da GZ -
Blastoise - 16.11.2010
Estou alterando as coordenadas de uma gz aqui, alterei na linha:
pawn Код:
GZsamp = GangZoneCreate(2274.8227, -1561.5795, 2330.8227, -1489.5795);
Mas ai tipo, o novo lugar jб estб pintado, mas nгo estб sendo dominado, somente no lugar das coordenadas antigas que foram alteradas que a бrea pode ser dominada, e mais estranho que sу no novo local que as cores ficam piscando indicando guerra.
Como resolvo isso?
Re: [DЪVIDA] Alterando as coordenadas da GZ -
Xapita_Halls - 17.11.2010
simples, pegue as coordenadas anteriores joga no binoculo vai ter com stock IsPlayerIn blablabla...
Muda pra gz normal lembrando que voce pega cordenada numa ponta depois em diagonal na outra!
ex:
Код:
stock IsPlayerInMorro(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= AKIVCCOLOCAAPRIMERACORDENADADO1PONTA && y >= 2CORDENADADAMESMAPONTA && x <= AKIOUTRACORDENADADAOUTRAPONTA && y <= AKICONTINUAЗГODAPONTA) return 1;
else return 0;
}
duvida cometne!