SetTimer("AreaCheck", 1000, 1); AreaCheck() { for(new i=0; i minx && x < maxx && y > miny && y < maxy) return 1; return 0; }