ermm use this:
Spoiler for code:
|
Take the tele tabs for example and replace the ids in the case.
ActionHandler.javaCode:FirstClickObjectto place the object go toCode:case 3443: c.getPA().startTeleport(XXXX, YYYY, H, "modern"); c.sendMessage("You teleport to the staffzone."); break;and go toCode:objectmanager.javaand spawn your own object in this case object 3343 and done.Code:loadcustomspawns
it is wrong, if he just add the object to the ground and add this on action handler, every player will be able to teleport, it should be somethng like this:
Code:case 3443: if (c.playerRights < 1) return; c.getPA().startTeleport(XXXX, YYYY, H, "modern"); c.sendMessage("You teleport to the staffzone."); break;
If you just want staff you do this:
case 3443:
if (c.playerRights >= 1)
c.getPA().startTeleport(XXXX, YYYY, H, "modern");
c.sendMessage("You teleport to the staffzone.");
} else {
c.sendMessage("You must be a member of staff to teleport to the staffzone.");
break;
.....................................
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |