Glock 18 is a pistol; it's not a machine pistol, like an UZI or MAC-10.
Video of a Glock 18 in action.