[Ajuda] Gangzone por Бrea - 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] Gangzone por Бrea (
/showthread.php?tid=610160)
Gangzone por Бrea -
social - 20.06.2016
Bom eu estou querendo desenvolver um sistema de GZ, na qual se tiver membros de Gangs inimiga na бrea da gz, ele avisa automaticamente que tem inimigo rondeando pelo territуrio Alguйm poderia me explicar a lуgica ou fazer uma base
Re: Gangzone por Бrea -
zSuYaNw - 20.06.2016
Voce pode usar 2 funcoes:
-
IsPlayerInArea 
verifica se o jogador esta em uma area X Y X2 Y2 (gangzone)
-
IsPlayerInRangeOfPoint 
verifica se o jogador esta perto de uma posicao x, y z
Apos verificar se o jogador esta proximo em uma gangzone, verifique se ele esta em uma gang e verifique se a gangzone e diferente da gang do jogador.
Re: Gangzone por Бrea -
JonathanFeitosa - 22.06.2016
Espero que lhe ajude:
https://sampforum.blast.hk/showthread.php?tid=562970