PDA

View Full Version : Some basic premium methods



General
December 3rd, 2011, 01:09
Well I thought I would add these, since it would make premium a little more functional and less programming :) and cleaner ofc.

Premium Teleports

public void dTeleport(int x, int y, int height) {
if (c.isDonator == false) {
c.sendMessage("You are not premium, you cannot go here.");
} else {
startTeleport(x, y, height, "modern");
}
}

For instance if you have a donator tab this would work

public void dTab(int id, int interfaceId) {
if (c.isDonator == false) {
c.sendMessage("You cannot use this tab, you are not a premium member.");
} else {
c.setSidebarInterface(id, interfaceId);
}
}

Ladders for donators if needed

public void dLadder(int x, int y, int height, int way) {
if (c.isDonator == false) {
c.sendMessage("Only premium members can access this area.");
} else {
if (way == 0) {
c.startAnimation(828);
movePlayer(x, y, height);
} else {
c.startAnimation(827);
movePlayer(x, y, height);
}
}
}

Needed:


isDonator = false,


If any requested please ask and I will make them :)

Unlimitedz
January 22nd, 2012, 11:56
Thanks....

jackcoulson
March 31st, 2012, 16:40
hmmmmm