21.11.2013, 10:59
Hey I'm trying to detect if player is near those coords:
I want to detect them in this function:
what to write in parameters to detect if player is near those coords?
And, is code correct? I'm not getting any errors for now..
Thanks for help in advance
pawn Код:
new GasStations[8][]=
{
{1942.0497,-1769.2963,13.6406}, // IW 1
{1941.6536,-1776.3457,13.6406}, // IW 2
{-1601.3220,-2708.2751,48.5391}, // highway towards Prickle Pine
{1604.5129,-2712.7729,48.5335}, // highway towards Prickle Pine
{-1607.7809,-2717.2312,48.5391}, // highway towards Prickle Pine
{-1610.9799,-2722.2913,48.5391}, // highway towards Prickle Pine
{-2247.2778,-2559.1624,31.9219}, // Diliamore
{-2240.6899,-2562.2366,31.9219} // Dilliamore
};
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2695.6880, -1704.6300, 11.8438))
And, is code correct? I'm not getting any errors for now..
Thanks for help in advance