How do I make it so only one player can enter a level?

How do I make it so only one player can enter a specific level, and any others that try to enter the level get warped out? I am sure it’s simple but I must be missing something…XD

People kept suggesting singleplayer; but that didn’t work at all XD.

if(playerenters && !isleader) setlevel2 gtfo.nw,30,30;

Oh, and can you move this? I don’t think I posted it in the right section XD. Mis-clicked and I think it made it post in the wrong section by doing so. Probably even close it, too. I thought it would be more “complicated” XDD.

‘cept it should be, “gtfi” for, get the f’ in lol & everyone else would gtf o lol XD

it would be gtfo, since the player enters and if they arnt the first in they get the f out lol, im not attacking you, just correcting o.0

Yeah, but wouldn’t that not work then? If it does it for “leader” it will kick everyone and no-one would ever be able to get in?(not even the first person to enter.) O.o, at least. That’s what it’s doing for me anyways when I tried it that way XD.

!isleader

For details sake, I hope you add it so that players can’t even ENTER the room while another player is in it, via a locked door. Not sure how this would be achieved in the older versions, probably a server flag. All I know is back on Classic I hated when I’d enter a level, sit and wait for it to load then have it spit me back out after the scripts load. It looks like crap.

Well, I am not expecting any too complicated of quests at this point so if it’s annoying to do I probably won’t play around with it.

It seems to work without playerenters but only once & then if I try to enter again it doesn’t until I reconnect XD. So I guess, that’ll work for now XD. Only problem is when the dungeon has more then one part XD.

why would that be a problem, if the non leader is kicked in the start room they cant access the rest of the dungeon… have I mis-interpreted this or something?

It probably has something to do with our outdated server, and my random huge lag sometimes that was causing it to simply not work right. XD.

___Merged doublepost__________________

singleplayer; for the win with newer server version XDD. lol

if(playerenters && playerscount > 1){setlevel2 gtfo.nw,30,30;}

but there has been a few instances where it messed up .

Make say

dungeonname-dungeon1-room1.nw
dungeonname-dungeon2-room1.nw
dungeonname-dungeon3-room1.nw
dungeonname-dungeon4-room1.nw