29.11.2014, 17:30
Vocк pode usar:
IsPlayerInRangeOfPoint
GetVehicleDistanceFromPoint / GetPlayerDistanceFromPoint
ou se preferir:
IsPlayerInRangeOfPoint
GetVehicleDistanceFromPoint / GetPlayerDistanceFromPoint
ou se preferir:
pawn Код:
stock GetDistance(Float:x1, Float:y1, Float:z1, Float:x2, Float:y2, Float:z2)
{
return floatround(floatsqroot(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)) + ((z1 - z2) * (z1 - z2))));
}