View Single Post
  #5  
Old 04-21-2009, 09:56 PM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
new script tell me what you think

PHP Code:
if(created){
 
setshape 1,32,32;
 
dontblock;
}
if(
actionstart){
 
this.conv_sparcount=0;
 unset 
this.conv_accounts;
 for(
this.conv_i=0;this.conv_i<playerscount;this.conv_i++){
  
with(players[this.conv_i]){
   if(
playerx in |17.5,43.5| && playery in |18,36|){
    if(
strequals(#c,start)){
     
this.conv_sparcount++;
     
addstring this.conv_accounts,#a;
     
setplayerprop #c,Spar starting!;
    
}
   }
  }
  if(
this.conv_sparcount==2){
   break;
  }
 }
 if(
this.conv_sparcount==2){
  for(
this.conv_i=0;this.conv_i<2;this.conv_i++){
   
with(getplayer(#I(this.conv_accounts,this.conv_i))){
    
set client.sparstart;
   }
  }
 }
}
if(
actionstop){
 
this.conv_sparcount=0;
 unset 
this.conv_accounts;
 for(
this.conv_i=0;this.conv_i<playerscount;this.conv_i++){
  
with(players[this.conv_i]){
   if(
playerx in |17.5,43.5| && playery in |18,36|){
    if(
strequals(#c,stop)){
     
this.conv_sparcount++;
     
addstring this.conv_accounts,#a;
    
}
   }
  }
  if(
this.conv_sparcount==2){
   break;
  }
 }
 if(
this.conv_sparcount==2){
  for(
this.conv_i=0;this.conv_i<2;this.conv_i++){
   
with(getplayer(#I(this.conv_accounts,this.conv_i))){
    
unset client.sparring;
    unset 
client.doorlock;
    
setplayerprop #c,Spar stopped!;
    
disableweapons;
   }
  }
 }
}
//#CLIENTSIDE
if(playerchats){
 if(
strequals(start,#c)){
  
if(playerx in |17.5,43.5| && playery in |18,36|){
   
this.conv_sparcount=1;
   for(
this.conv_i=1;this.conv_i<playerscount;this.conv_i++){
    if(
strequals(#c(this.conv_i),start)){
     
if(players[this.conv_i].x in |17.5,43.5| && players[this.conv_i].y in |18,36|){
      
this.conv_sparcount=2;
      break;
     }
    }
   }
   if(
this.conv_sparcount==2){
    
triggeraction x,y,start,;
   }
  }
 }
 if(
strequals(stop,#c)){
  
if(playerx in |17.5,43.5| && playery in |18,36|){
   
this.conv_sparcount=1;
   for(
this.conv_i=1;this.conv_i<playerscount;this.conv_i++){
    if(
strequals(#c(this.conv_i),stop)){
     
if(players[this.conv_i].x in |17.5,43.5| && players[this.conv_i].y in |18,36|){
      
this.conv_sparcount=2;
      break;
     }
    }
   }
   if(
this.conv_sparcount==2){
    
triggeraction x,y,stop,;
   }
  }
 }
}
if(
created||timeout){
 
timeout=.05;
 if(
client.sparstart){
  unset 
client.sparstart;
  
this.conv_timer=3;
  
putbomb 1,x,y;
 }
 if(
this.conv_timer>0){
  
this.conv_timer-=.05;
  if(
this.conv_timer==0){
   
set client.sparring;
   
set client.doorlock;
  }
 }
}
if(
playerchats){
 if(
startswith(warpto,#c)){
  
setplayerprop #c,No warping in this level!;
 
}
 if(
strequals(unstick me,#c)||strequals(unstuck me,#c)){
  
setplayerprop #c,No unsticking in this level!;
 
}
 if(
strequals(update level,#c)){
  
setplayerprop #c,No updating level!;
 
}
  elseif (
player.chat == "i call winner" && !(player.account in this.sparring)) {
        if (
this.sparring.size() < 3) {
player.30.5;
    
player.36;
  }


Last edited by Kamakaze; 04-21-2009 at 09:57 PM.. Reason: put the wrong coding edit!
Reply With Quote