11.04.2011, 22:19
It would be better to place all of your ATM objects into an array.
That way you can loop through them easily
pawn Код:
new atm[3];
atm[0]=CreateObject(...
atm[1]=CreateObject(...
atm[2]=CreateObject(...
pawn Код:
new Float:x,Float:y,Float:z;
for(new object;object<sizeof(atm);object++)
{
GetObjectPos(atm[object],x,y,z);
if(IsPlayerInRangeOfPoint(playerid,5.0,x,y,z))
{
//code
break;
}
}