Nice, it compiled fine, now to see if it works :D
You could "save" that for later, such as if yu made a variable for the mob's type of say:

var
home = 0


Now in the teleport code we could do:

    teleport(/*floor code*/, mob/warper)
var
warpX
warpY
if(warper.home)
warper.loc = home
else
warpX = floor.x + rand(1,14)
warpY = floor.y + rand(1,8)
warper.home = locate(warpX,warpY,1)
Now you have me antsy, did it work? lol
Best response
To expand on Akando's code, you could just check to see if the area is being occupied.

mob/proc
set_loc(x, y, z)
var/turf/t = locate(x, y, z)
if(t.contents.len >= 1)
src.loc = locate(t.x + rand(1, 5), t.y + rand(1, 5), t.z)
else
src.loc = locate(t.x, t,y, t.z)

Keep in mind that you will also be relocated if there are "non-mobs" in that location too.
Msgnum's code is much more error protective :)
Hmmm, for some reason it does not work
Though I think it is a problem in the other proc
Can you put an output string in the teleport proc so we can makesure it is getting there.
Hmm yeah,
-crosses fingers- I hope this works :D
Holy shiskabob, it teleported all of the other characters to that location, lol but it didn't teleport me.

But I edited it to
for(var/mob/PC/M in world)
teleport (M)
ROFL thats why, don't do that lol, becuase you are getting every mob in the world and passing them into the teleprt proc.
Ok, it never reached the proc, so I'm guessing there's something wrong in the transition
The second proc was fixed, but the teleport proc never worked |:
Can you copy and paste what you have for the first proc and the teleport?
yeah sure, how do I copy paste code again? Kinda new at this lol
Put it between a dm and /dm tag, so type < "dm" > and <" /dm "> without the quotations
First proc:
for(var/mob/PC/M in world)
if(M.response == 0)
world <<"\white [M] has been teleported outside because of a non-response!"
teleport (M)

Teleport proc:
proc
teleport(turf/Floors/floor, mob/warper)
var
warpX
warpY
warpX = floor.x + rand(1,14)
warpY = floor.y +rand(1,8)
warper.loc = locate(warpX,warpY,1)
world << "\white It is getting here"
Does it show the teleport out because of non-response message?

and it is showing:

world << "\white It is getting here"?
It does, but it doesn't show the "It is getting here"
Page: 1 2 3