Radius
#1

I have an idea but IDK if it will work and I have no-one to test it with: Will this work (radius = 5)

Код:
GetPlayerPos(playerid, xx, yy, zz);
GetPlayerPos(id, x, y, z);
xxx = x - xx;
yyy = y - yy;
zzz = z - zz;
if(xxx <= 5){
return 1;
} else if(yyy <= 5){
return 1;
}
will this work? I want it to do something if the person is within a radius of 5
Reply


Messages In This Thread
Radius - by Runedog48 - 18.07.2011, 22:38
Re: Radius - by DRIFT_HUNTER - 18.07.2011, 22:47
Re: Radius - by Runedog48 - 18.07.2011, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)