View Single Post
  #3  
Old 07-27-2012, 07:01 PM
Bleachlover551 Bleachlover551 is offline
Soul Reaper
Bleachlover551's Avatar
Join Date: Jul 2012
Location: Brunswick
Posts: 34
Bleachlover551 is an unknown quantity at this point
Quote:
Originally Posted by Astram View Post
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.30//Change This, this is the X of the 1st player that enters
    
player.30//Change This, this is the Y of the 1st player that enters
  
} else {
    
player.15//Change This, this is the X of the 2nd+ player(s) that enter
    
player.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
so lets say i would have 7 slots open would i just keep adding else command?
Reply With Quote