[Ajuda] IsPlayerInRangeOfPoint - 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] IsPlayerInRangeOfPoint (
/showthread.php?tid=623948)
IsPlayerInRangeOfPoint -
nasser - 08.12.2016
Dъvida rбpida glr eu sei q parece ser idiota mбs eu nгo sei usar o IsPlayerInRangeOfPoint nгo tem uma forma mais fбcil para que eu saiba onde comeзa e onde termina o ponto ? ex eu botei uma vez range em 250.0 ficou uma бrea enorme que os players nгo podiam fazer tal coisa
Re: IsPlayerInRangeOfPoint -
zSuYaNw - 08.12.2016
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Bons estudos!
Re: IsPlayerInRangeOfPoint -
nasser - 08.12.2016
Cara tu nгo entendeu eu tou falando do tamanho do ponto '-' o range
Re: IsPlayerInRangeOfPoint -
zSuYaNw - 08.12.2016
Bom, vocк pode ver
este tutorial sobre radianos (radius).
Quote:
Originally Posted by DanishHaq
So, using this in code is a bit like this:
pawn Код:
#include <a_samp>
if(IsPlayerInRangeOfPoint(playerid, 10.0, 50.0, 40.0, 30.0))
This here will check if the player is within the radius of 10 meters of the point X Y Z of 50.0, 40.0 and 30.0. From the point of 50.0, 40.0, 30.0 the GM will create something which you could call an 'invisible' radius from the X Y Z point, which ranges 10 meters out in a North facing direction, from there, the GM will create another 'invisible' which develops this circumference of the circle. Here's a picture explaining this into picture-form:
The center point will be 50.0, 40.0, and 30.0 from the parameters of the function that we used.
|
Re: IsPlayerInRangeOfPoint -
nasser - 08.12.2016
Quote:
Originally Posted by zSuYaNw
Bom, vocк pode ver este tutorial sobre radianos (radius).
|
ata obrigado e.e
Re: IsPlayerInRangeOfPoint -
iLordGG - 08.12.2016
se quiser saber usando checkpoints acho que fica o mesmo tamanho, ai vocк ajusta como quiser..
Re: IsPlayerInRangeOfPoint -
SukMathcuck - 08.12.2016
Vocк deve usar tipo:
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 0.0, x, y, z))
Re: IsPlayerInRangeOfPoint -
pWesley - 08.12.2016
Sу precisa entender que o
range da бrea serб determinado a partir das coordenadas estipuladas. Por exemplo, vocк estб na posiзгo 0.0, 0.0, 0.0. A partir daн, vocк determina o tamanho da circunferкncia da бrea (em
radius) na coordenada aplicada.