Thread: Player Levels
View Single Post
  #13  
Old 10-14-2007, 09:50 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
although, since you're only wanting to find a specific player I wouldn't use players/allplayers...

HTML Code:
//pars = [0-action]
if (temp.action == "summon") {
  findPlayer(params.substring(temp.action.length() + 1)).setlevel2(player.level.name, player.x, player.y);
}
oh, just re-read my bad

HTML Code:
if (temp.action == "summon") {
  for (temp.i: players) {
    temp.i.setlevel2(player.level.name, player.x, player.y);
  }
}
this will cause everyone in your level to be warped to that position
__________________
Reply With Quote