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
#2

Why you dont use IsPlayerInRangeOfPoint?
Reply
#3

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Why you dont use IsPlayerInRangeOfPoint?
Sorry, didn't know they had that o.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)