22.12.2014, 10:52
I've used that in a stock to get the distance between 2 players:
So I guess it returns floats?
pawn Код:
stock GetDistance(playerid, targetid)
{
new Float:tX, Float:tY, Float:tZ, Float:distance;
GetPlayerPos(targetid, tX, tY, tZ), distance = GetPlayerDistanceFromPoint(playerid, tX, tY, tZ);
return _:distance;
}