That doesn't work at all (edit: Burridge was faster). You need to repeat the entire IsPlayerInRangeOfPoint line. But if you have more than two or three sets of coordinates then I recommend using an array to keep your code neat and readable. So something like:
PHP код:
static const Float:coords[][3] = {
{x1, y1, z1},
{x2, y2, z2},
{x3, y3, z3},
{x4, y4, z4} // no comma after last one
};
for(new i; i < sizeof(coords); i++)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, coords[i][0], coords[i][1], coords[i][2])
{
// do stuff
break; // this is here to stop the needless searching of the other locations as soon as one is found
}
}