11.04.2011, 22:22
pawn Код:
new atm[50];
atm[0] = CreateObject(...)
atm[1] = CreateObject(...)
atm[2] = CreateObject(...)
atm[49] = CreateObject(...)
// command
new x = 0;
for(new i = 0; i < sizeof(atm); i++)
{
new Float:Pos[3];
GetObjectPos(atm[i], Pos[0], Pos[1], Pos[2]);
if(IsPlayerInRangeOfPoint(playerid, 3.0, Pos[0], Pos[1], Pos[2])) x++;
}
if(x == 0) return SendClientMessage(playerid, 0xFF0000FF, "You are not near the ATM machine!");
// rest of code (if is near the atm machine)

