View Full Version : StaffZone Help
Caldito
June 18th, 2010, 05:06
Hello , *|Using Codeusa base|*
Can someone help me make a command called staffzone that only mods and admins can use? I will apreciate alot ;)
My staffzone will be at Camelot Castle but i have a problem theres a large door at the castle and i can't open it where do i fix that?
Oh and how do i make for an npc (example: king arthur) spam Welcome to StaffZone
Thanks!
aNOOBus
June 18th, 2010, 05:09
if (cmd[0].equals("staffzone")) {
p.teleportTo(3161, 3491, 2, 4, 0, 8939, 8941, 1576, 0, 1577, 0);
p.getActionSender().sendMessage(p, "Welcome to the staff zone");
Use own cords n shit, thats on top of the G.E
Caldito
June 18th, 2010, 05:10
Ty bro
Nathan'
June 18th, 2010, 05:10
IN commands.java search for
if (p.rights >= 1) {
Just under there add
if (cmd[0].equals("staffzone")) {
if (p.InBounty == 1) {
p.getActionSender().sendMessage(p, "You cannot use this command while in BH.");
return;
}
if (p.attackedBy != null) {
p.getActionSender().sendMessage(p, "You cannot use this command while in combat.");
return;
}
p.teleportTo(xxxx, yyyy, 0, 0, 0, 8939, 8941, 1576, 0, 1577, 0);
}
This makes mods + only possible to do the command
aNOOBus
June 18th, 2010, 05:28
^ More detail...
Aaron
June 18th, 2010, 05:30
Tele to a Cord and than make the command.
Caldito
June 18th, 2010, 05:37
ya i got it already guys thanks! but am having a new trouble dang it, i will be glad if you guys help me x:P
Am trying to make a staff shops but idk how i tried to copy an npc and just changed the coords and copy the shops and putted the staff stuff lol. and didn't work help me please
Nathan'
June 18th, 2010, 05:38
teamviewer?
aNOOBus
June 18th, 2010, 06:03
Nathan, you should come help me.
Nathan'
June 18th, 2010, 06:12
what do you need help with?
aNOOBus
June 18th, 2010, 06:24
Only the registered members can see the link.
Break
June 18th, 2010, 09:27
if (cmd[0].equals("staffzone") && p.rights => 1) {
p.teleportTo(3161, 3491, 2, 4, 0, 8939, 8941, 1576, 0, 1577, 0);
p.getActionSender().sendMessage(p, "Welcome to the staff zone");
}
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.