View Single Post
  #1  
Old 04-21-2009, 02:05 AM
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
Red face spar arena script help (was titled "scripting help!")

i have this script for a spar arena and it will not place the bomb on player chats start. and i need help with the disabling weapons when not in spar and re-enabling them when the player says 'start' so they can spar!

here is the script if you could please help me get this script working that would be great thanks
-Joker


PHP Code:
//#CLIENTSIDE
    
function onCreated() {
      
setTimer(0.05);
    }
function 
onPlayerChats() {
      if (
player.chat == "start") {
        if (
this.sparring.size() == 2putbomb(03135);
      }
  elseif (
player.chat == "join") {
        if (
this.sparring.size 3) {
player.30;
    
player.30;
    }
      }
    }
function 
onTimeout() {
      
temp.sparAreaX 0;
      
temp.sparAreaY 0;

      
temp.sparAreaWidth 10;
      
temp.sparAreaHeight 10
  
if (player.x in |temp.sparAreaXtemp.sparAreaX temp.sparAreaWidth|
          && 
player.y in |temp.sparAreaYtemp.sparAreaY temp.sparAreaHeight|) {

           if (!(
player.account in this.sparring)) {
             if (
this.sparring.size() < 3) {
            
this.sparring.add(player.account);
             }

     else {
       
player.30;
       
player.30;
     }
       }
      }

      else {
    if (
player.account in this.sparringthis.sparring.remove(player.account);
      }
  
setTimer(0.05);
    } 
Reply With Quote