29.06.2012, 23:51
Use an array and a loop. And stop using godforsaken godfather edits.
Add that on top or in the command, depending on if you want to use these locations elsewhere.
pawn Код:
static const Float:dutyPoints[][3] = {
{220.4274,74.9089,1005.0391},
{1345.89,521.74,1067.76},
// you get the point
};
pawn Код:
new
bool:found;
for(new i; i < sizeof(dutyPoints); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 6, dutyPoints[i][0], dutyPoints[i][1], dutyPoints[i][2]))
{
found = true;
break;
}
}
if(found)
{
// stuff if they're in range
}