View Single Post
  #11  
Old 08-24-2009, 06:29 PM
sssssssssss sssssssssss is offline
Cyril Rain
sssssssssss's Avatar
Join Date: May 2003
Location: Texas, USA
Posts: 1,134
sssssssssss will become famous soon enough
Ok. The forum I started was for this script.

PHP Code:
function onCreated() {
  
this.setshape(13232);
}

function 
onActionSetMatchServer(matchvplayersplayer) {
  for (
temp.0temp.<= 10temp.i++) {
    if (
match == imakevar("serverr.sdematch" i) = {vplayersplayer};
  }
}
function 
onActionWarpMatchServer() {
  
setlevel2("testtourny2.nw",30,30);
}
function 
onActionWarpMatchOutServer() {
  
setlevel2("testtourny.nw",1,1);
}

//#CLIENTSIDE
function onCreated() {
  
this.setshape(13232);
  if (
player.dies){
    if (
player.account == serverr.sdematch1[0] || player.account == serverr.sdematch1[1]){
      
triggeraction(this.0.5this.0.5"WarpMatchOutServer","");
    }
  }
}
function 
onPlayerTouchsMe()
  {
  
say2("Match1: " serverr.sdematch1[0] @ " vs. " serverr.sdematch1[1] @ "
  Match2: " 
serverr.sdematch2[0] @ " vs. " serverr.sdematch2[1] @ "
    Match3: " 
serverr.sdematch3[0] @ " vs. " serverr.sdematch3[1] @ "
      Match4: " 
serverr.sdematch4[0] @ " vs. " serverr.sdematch4[1] @ "
        Match5: " 
serverr.sdematch5[0] @ " vs. " serverr.sdematch5[1] @ "
          Match6: " 
serverr.sdematch6[0] @ " vs. " serverr.sdematch6[1] @ "
            Match7: " 
serverr.sdematch7[0] @ " vs. " serverr.sdematch7[1] @ "
              Match8: " 
serverr.sdematch8[0] @ " vs. " serverr.sdematch8[1] @ "
                Match9: " 
serverr.sdematch9[0] @ " vs. " serverr.sdematch9[1] @ "
                  Match10: " 
serverr.sdematch10[0] @ " vs. " serverr.sdematch10[1] @"");
}

function 
onPlayerChats(){
  if (
player.account in serverr.sdeaccess)
    {
    if (
player.chat.starts("setmatch")) {
      
temp.match player.chat.tokenize()[1];
      
temp.vplayer player.chat.tokenize()[2];
      
temp.splayer player.chat.tokenize()[3];
      
triggeraction(this.0.5this.0.5"SetMatchServer"temp.matchtemp.vplayer,temp.splayer);
    }
    if (
player.chat.starts("startmatches")){
      for (
temp.0temp.<= 10temp.i++) {
        if (
== 1){
          if (
!= ""){
            if (
player.account == serverr.sdematch1[0] || player.account == serverr.sdematch1[1]){
              
triggeraction(this.0.5this.0.5"WarpMatchServer","");
            }
          }
        }
      }
    }
  }

Now I'm lost, again. Im trying to set it where you can say "startmatches", and it will go through all the set matches, warping the people in for the first one, warp them out when they die, which will cause the 2nd set of matches to start, and warp them in, ect so on and so on.
Im just lost. Don't know where to go next, at all. help
__________________
Cyril Rain
Creator and leader of SLX
Admin of Elysium
Elysium's Facebook Page: http://facebook.com/GraalOnlineElysium
Graal Forum Thread: http://forums.graalonline.com...
Graalians Thread: http://www.graalians.com...


Reply With Quote