05.07.2013, 11:04
pawn Код:
//top of your script
new Float:mines[][] =
{
{1649.7455, -2147.9253, 6.9209}, // Mine1 (format x, y, z).
{1549.7715, -2677.9262, 15.9550}, // Mine2
//.....
{844.5756, -1667.2555, 2.7684} // Last mine
};
CMD:mine(playerid)
{
for(new i; i < sizeof(mines); i++)
{
if(!IsPlayerInRangeOfPoint(playerid, range, mines[i][0], mines[i][1], mines[i][2])) continue;
//The player is in range of a mine.
}
return 1;
}