View Full Version : * How to make it so that Admins don't lose items on death...? *
Divine
June 18th, 2010, 03:41
Hey guys :)... Well, meh question's pretty straighforward..
How do you make it so that Admins don't lost items when they die =o?
Ty,
crezzy
June 18th, 2010, 10:28
Find the drop loot method in player.java and put
if(this.getRights() == 2) {
return;
}
under it
like mines
public void dropLoot() {
if(this.inClanWars()) {
return;
}
if(this.inFightPits()) {
return;
}
if(this.getRights() == 2) {
return;
}
if(this.getRights() == 3) {
return;
}
if(this.getRights() == 4) {
return;
}
You will have to prob convert this over to your type of base tho.
This is for rs2hd 562 btw.
kaos
June 18th, 2010, 10:38
are you using devo or delta?
Emperor
June 18th, 2010, 14:12
public void youDied() , Just add in:
if (playerRights > 1) {
return;
}
But use some conventions.
Sunni
June 18th, 2010, 15:23
public void youDied() , Just add in:
[CODE] if (playerRights > 1) {
return;
}[CODE]
But use some conventions.
Close your code tag next time
if (playerRights > 2) {
return;
It needs to be 2 not 1 because 2 is admin and 1 is moderator.
Emperor
June 18th, 2010, 15:55
No it doesn't -.-'
When you don't want admins to drop either,
it has to be above rights 1 wich is 2, 3 and 4; In other words, Admin, Owner and Hidden admin.
What you have provided would only make owners and hidden adminstrators not loose items,
though he clearly requested admins aswel.
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.