SA-MP Forums Archive
[Ajuda] Coordenada - 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] Coordenada (/showthread.php?tid=642118)



Coordenada - RuanPereira - 25.09.2017

Alguйm sabe como mudo essas coordenadas? quero colocar dentro da бgua da praia de LS

PHP код:
stock IsInTester(playerid)
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    if( 
<= 296.8295 && <= -1935.1895 && >= -0.4902 && >= 160.8441) return 1;
    else return 
0;




Re: Coordenada - BrunoLuiz - 25.09.2017

pega a coordenada e manda aqui


Re: Coordenada - RuanPereira - 25.09.2017

Quote:
Originally Posted by BrunoLuiz
Посмотреть сообщение
pega a coordenada e manda aqui
AddPlayerClass(283,296.8295,-1935.1895,-0.4197,114.7835,0,0,0,0,0,0);


Re: Coordenada - BrunoLuiz - 25.09.2017

Код:
stock IsInTester(playerid) 
{ 
    new Float:x,Float:y,Float:z; 
   GetPlayerPos(playerid, x, y, z);
    if(x >= 296.82 && y >= -1935.18 && x <= -0.4197 && y <= 114.78) return 1;
    else return 0;

}



Re: Coordenada - RuanPereira - 25.09.2017

Quote:
Originally Posted by BrunoLuiz
Посмотреть сообщение
Код:
stock IsInTester(playerid) 
{ 
    new Float:x,Float:y,Float:z; 
   GetPlayerPos(playerid, x, y, z);
    if(x >= 296.82 && y >= -1935.18 && x <= -0.4197 && y <= 114.78) return 1;
    else return 0;

}
Nгo funcionou da essa Mensagem " Vocк estб longe do ponto de pesca. " quero que o player possa pescar no barco na praia de LS


Re: Coordenada - SammyJ - 25.09.2017

Pega a coordenada conforme este vнdeo mostra.
https://www.youtube.com/watch?v=QGFMfLCWSFs

Coloque essa funзгo no final do GM e use-a.
PHP код:
stock IsPlayerInPlace(playeridFloat:XMinFloat:YMinFloat:XMaxFloat:YMax )
{
    new 
Float:X,Float:Y,Float:Z;
    
GetPlayerPos(playerid,X,Y,);

    if( 
>= XMin && >= YMin && XMax && YMax )
        return 
true;

    return 
false;




Re: Coordenada - RuanPereira - 25.09.2017

Quote:
Originally Posted by SammyJ
Посмотреть сообщение
Pega a coordenada conforme este vнdeo mostra.
https://www.youtube.com/watch?v=QGFMfLCWSFs

Coloque essa funзгo no final do GM e use-a.
PHP код:
stock IsPlayerInPlace(playeridFloat:XMinFloat:YMinFloat:XMaxFloat:YMax )
{
    new 
Float:X,Float:Y,Float:Z;
    
GetPlayerPos(playerid,X,Y,);
    if( 
>= XMin && >= YMin && XMax && YMax )
        return 
true;
    return 
false;

Como funciona isso? й sу colocar no gamemode й ir salvar uma ponta para a outra?