public OnPlayerUpdate(playerid) // or a timer{ if(Team[playerid] == TEAM_COP && IsPlayerInRangeOfPoint(playerid, 25.0, x, y, z) OpenDoor();}