Here's a version that just draws multiple lines. If you want to be able to adjust the thickness, then one of the above links should do it.
do
if mouseclick() = 1 AND DrawFlag = 1
newx = mousex()
newy = mousey()
line oldx-1,oldy-1,newx-1,newy-1
line oldx+1,oldy+1,newx+1,newy+1
line oldx+1,oldy-1,newx+1,newy-1
line oldx-1,oldy+1,newx-1,newy+1
line oldx+1,oldy,newx+1,newy
line oldx-1,oldy,newx-1,newy
line oldx,oldy+1,newx,newy+1
line oldx,oldy-1,newx,newy-1
line oldx,oldy,newx,newy
oldx = newx
oldy = newy
endif
if mouseclick() = 1 AND DrawFlag = 0
oldx = mousex()
oldy = mousey()
DrawFlag = 1
endif
if mouseclick() = 2 then DrawFlag = 0
loop