please skype me @imsoskills
|
I was wondering if I can make it so that if a owner Rank = 3 , kills a normal player they don't lose thier items I already have it that if a normal player kills an admin the admin doesn't lose an item. I was wondering I can get the code and how to do it for if the normal player dies. Thank you I might even pay , maybe.
please skype me @imsoskills
Just disable admins from pking?
Will, since you didn't tell me what base you are using... I decided to just make up a code and this could be easily converted.
1) What you want to do is make a check in the combat method, for player vs player.
2) The next thing you want to do is go to the drops method (for combat) and use that sane check as this example.Code:public boolean ownerAttackingPlayer; if (player.getStaffRights() == 3) { player.ownerAttackingPlayer = true; }
You're welcome.Code:if (Victim.isPlayer() && player.ownerAttackingPlayer) { ownerAttackingPlayer = false; return; }
its in the config file, should say something like admins able to kill = "false"; change to true
ohh then make it so that they cant drop in general, or else your going to have to make a whole new meathod in player killing.
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |