21.03.2011, 19:26
Does anyone know the stock related to this function?
GetPlayerDistanceToPointEx
GetPlayerDistanceToPointEx
stock GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z) {
new Float:x1,Float:y1,Float:z1;
new Float:dis;
GetPlayerPos(playerid,x1,y1,z1);
dis = floatsqroot((x-x1)*(x-x1)+(y-y1)*(y-y1)+(z-z1)*(z-z1));
return floatround(dis);
}