mob
var
roomentered=0
area
teleports
roomone
Entered(var/mob/M)
Enter(0)
usr << "You've Entered"
Exited(var/mob/M)
Enter(1)
usr << "You've left"</b>
Problem description:So i'm trying to create a private section of the game limited to only 1 person at a time. What i'm going for is a room that when you enter, the spot is then not accessible for anyone else. i'm kinda new to byond coding creating from scratch so i'm not completely up to par with all the function and such byond had to offer but, you can see my code above and hopefully give me some advice on how to do this? Also i'm not sure if i'm using the Enter() function correctly.
(Edit) Cleaned up a lot of the code to make it simpler for what i want