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

pawn Код:
stock IsPlayerInRangeOfPoint(playerid,radius,Float:x,Float:y,Float:z)
{
    new Float:p[3];
    GetPlayerPos(playerid,p[0],p[1],p[2]);
    new dist = floatsqroot(floatpower(floatabs(floatsub(p[0],x)),2)+floatpower(floatabs(floatsub(p[1],y)),2)+floatpower(floatabs(floatsub(p[2],z)),2));
    if(dist < radius) return 1;
    return -1;
}
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: 3 Guest(s)