You can use variables to set if there is a player in there for instance you could try something such as this: (I am also coding this in GS2 not GS1 as it is outdated)
PHP Code:
function onPlayerEnters() {
if (this.inside == false) {
this.inside = true;
player.x = 30; //Change This, this is the X of the 1st player that enters
player.y = 30; //Change This, this is the Y of the 1st player that enters
} else {
player.x = 15; //Change This, this is the X of the 2nd+ player(s) that enter
player.y = 15; //Change This, this is the Y of the 2nd+ player(s) that enter
}
if (player.chat == "/reset" && player.guild == "Events Team") {
this.inside = false;
}
}
Just plop this down as an NPC in the level and you're ready to go
