[Ajuda] IsPlayerInRangeOfPoint
#4

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.
Reply


Messages In This Thread
IsPlayerInRangeOfPoint - by nasser - 08.12.2016, 11:13
Re: IsPlayerInRangeOfPoint - by zSuYaNw - 08.12.2016, 11:15
Re: IsPlayerInRangeOfPoint - by nasser - 08.12.2016, 11:25
Re: IsPlayerInRangeOfPoint - by zSuYaNw - 08.12.2016, 11:35
Re: IsPlayerInRangeOfPoint - by nasser - 08.12.2016, 11:52
Re: IsPlayerInRangeOfPoint - by iLordGG - 08.12.2016, 11:58
Re: IsPlayerInRangeOfPoint - by SukMathcuck - 08.12.2016, 12:09
Re: IsPlayerInRangeOfPoint - by pWesley - 08.12.2016, 13:54

Forum Jump:


Users browsing this thread: 2 Guest(s)