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
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!
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 =[
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...
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 }