Can someone find it for me? :) (+REP)
#6

pawn Код:
stock IsPlayerInRangeOfPoint(playerid, Float:radius, Float:X, Float:Y, Float:Z)
{
    new Float:px,Float:py,Float:pz;
    GetPlayerPos(playerid,px,py,pz);
    return ( ( ((px-X)*(px-X))+((py-Y)*(py-Y))+((pz-Z)*(pz-Z)) ) >= radius*radius );
}
Reply


Messages In This Thread
Can someone find it for me? :) (+REP) - by T0pAz - 11.12.2011, 14:26
Re: Can someone find it for me? :) (+REP) - by bartje01 - 11.12.2011, 14:27
Re: Can someone find it for me? :) (+REP) - by T0pAz - 11.12.2011, 14:28
Re: Can someone find it for me? :) (+REP) - by Vince - 11.12.2011, 14:31
Re: Can someone find it for me? :) (+REP) - by THE_KNOWN - 11.12.2011, 14:50
Re: Can someone find it for me? :) (+REP) - by Kostas' - 11.12.2011, 14:55
Re: Can someone find it for me? :) (+REP) - by T0pAz - 11.12.2011, 15:06

Forum Jump:


Users browsing this thread: 1 Guest(s)