Adblock breaks this site

Command

Discussion in 'Archives' started by Rankster, Feb 19, 2008.

  1. Rankster

    Rankster Member

    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0
    Command

    was wondering how i make a ::bank command and a ::coordson/::coordsoff command, its been bugging me when i wanted to add objects but didnt no the coords, help is much appreciated
     
  2. Samarkov

    Samarkov Active Member

    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0
    Command

    Code:
    if (command.equalsIgnoreCase("bank") && playerRights >= 0)
             {openUpBank()
    }
    Put this in commands Section!
    That should work, I'm not totally sure though, I'm using CZAR source on mine, but if this code is universal then it should work.

    Here is the coordson/off code it will send it to an area below the server name (if it is in the same place as most)
    If coords are in wrong spot add or subtract 2 to the 6576 until it is fixed.

    Put this in the commands section!
    Code:
    if(command.equalsIgnoreCase("coordson") && playerRights >=0)
    {
    sendFrame126("X:"+absX+" Y:"+absY, 6576)
    }else
    if(command.equalsIgnoreCase("coordsoff") && playerRights >=0)
    {Sendframe126(" ",6576)
    }
    Enjoy!
     
  3. Rankster

    Rankster Member

    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0
    Command

    tyvm but i got 3 errors wen i put it into the command.java, any idea of were i should put it?
     
  4. Samarkov

    Samarkov Active Member

    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0
    Command

    in the commands section. Which one didn't work?
     
  5. Rankster

    Rankster Member

    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0
    Command

    both of em, i got it compiled with 3 errors then i ran server but the commands did not work.. i have no clue what happened =[
     
  6. $4nt4 b!ch

    $4nt4 b!ch Guest

    Referrals:
    0
    Command

  7. Rankster

    Rankster Member

    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0
    Command

    i got command makers, the only thing is i dont no where to add the commands at, cuz were ever i add them i get errors...
     
  8. Samarkov

    Samarkov Active Member

    Joined:
    Feb 21, 2008
    Posts:
    147
    Referrals:
    0
    Sythe Gold:
    0
    Command

    add it in the section where all of your text commands are. Make sure it isnt in the way of any.

    Put it after something that looks like this }
     
  9. Rankster

    Rankster Member

    Joined:
    May 6, 2007
    Posts:
    83
    Referrals:
    0
    Sythe Gold:
    0
    Command

    alright tyvm!
     
< Buying a skiller... | sexy and violent Pixel Sigs and Avatars >


 
 
Adblock breaks this site