SA-MP Forums Archive
[Ajuda] Entrar na favela e ganhar armas - 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] Entrar na favela e ganhar armas (/showthread.php?tid=451131)



Entrar na favela e ganhar armas - xxRaioxx - 16.07.2013

Olб,quero saber se tem jeito de eu colocar um comando,que quando entra na favela entra com armas,eu ja sei o do pelo teleporte,eu queria saber tipo,se ta de carro,e entra na favela ganha armas. Tem jeito?


Re: Entrar na favela e ganhar armas - Coe1 - 16.07.2013

Utilize IsPlayerInRangeOfPoint


Re: Entrar na favela e ganhar armas - focaximubh - 16.07.2013

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))
    {
        GivePlayerWeapon(playerid, IDARMA, BALAS);
        GivePlayerWeapon(playerid, IDARMA, BALAS);
        GivePlayerWeapon(playerid, IDARMA, BALAS);
        GivePlayerWeapon(playerid, IDARMA, BALAS);
    }

//O 7.0 й a distвncia que o player pode estar para poder receber os treko :D



Re: Entrar na favela e ganhar armas - xxRaioxx - 16.07.2013

Obrigado funcionou.


Re: Entrar na favela e ganhar armas - focaximubh - 16.07.2013

Quote:
Originally Posted by xxRaioxx
Посмотреть сообщение
Obrigado funcionou.
Disponha