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



checkpoint ou area?? - felipegomez - 10.04.2017

se tem uma area invisivel,que nao aparece no mapa, aonde tem um certo mecanico, e encima dele tem um texto "aperte y para comprar items",como faзo esse tipo de checkpoint invisivel sei la/etc, so pode apertar "y" quando tiver naquela area, pls

Код:
Ass.. rapas que podia ta matando,roubando,mas so esta tentando aprender.



Re: checkpoint ou area?? - MultiKill - 10.04.2017

Use a callback OnPlayerKeyStateChange para detectar quando o jogador apertar Y e a funзгo IsPlayerInRangeOfPoint para fazer a verificaзгo se ele esta na бrea.