View Single Post
  #2  
Old 10-19-2012, 04:01 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Use players (local to the levels) instead of allplayers (entire server).

PHP Code:
temp.boxes = {
  {
001010}, // x, y, width, height
  
{10101010},
};
temp.box temp.boxes[int(random(0,temp.boxes.size()))];
for (
temp.plplayers) {
  if (
temp.pl.x in |temp.box[0], temp.box[0] + temp.box[2]| && temp.pl.y in |temp.box[1],temp.box[1]+temp.box[3]|) {
    
temp.pl.setlevel2("warpout.nw"3030);
  }

__________________
Quote:
Reply With Quote