find your trade method, and add in something like
Code:if(playrRights >=1) { return; }
|
Could someone please link me to a guide on any forums on how to stop mods and admins trading or post one in detail pl0x! people constalty give items to there friends and it's doing my head in. i've seen this done before on other servers and seems to work nicely =]
- thanks demonzscape
find your trade method, and add in something like
Code:if(playrRights >=1) { return; }
Doens't appear to work =[ more detail please? =(
find
case 139: //trade request
were u see
tradeReq(TradeReqID);
or
TradeRequest(tradeId);
do
if(PlayerRights > 0)
sendMessage("Sorry But You Cannot Trade...
break;
now to prevent players from trading the mod+
in the void tradereq(int id) or tradeRequest(int id)
add
if(other.playerRights > 0)
sendMessage("This Player Is A Mod+ Therefore Cannot Be Trade");
return;
demonzz is obviously a retard. it works. these people use it. dont even post kid.
Differnt sources you prick you know nothing
Ugh, ill take a look on my client java and post
Ok Under
AddCode:public void tradeReq(int id) {
Thats Trading.Code:if(playerRights == 2){ sM("Staff Administrators can't trade players."); return; } if(playerRights == 1){ sM("Staff Moderators can't trade players.."); return; } if(playerRights == 3){ sM("Owner/Co Owner can't trade."); return; }
Heres Dropping
Look for
Under that, addCode:public void dropItem(int droppedItem, int slot) { // misc.printlnTag("droppeditem ["+playerItems[slot]+"] which is // ["+(droppedItem+1)+"]"); boolean a = true;
Code:if (playerRights == 2) { sM("Dropping has been disabled, use ::empty to delete your inventoy instead."); return ; }
You should let Mods have spawning rights. Nor should you let people have hidden admin. this can be because of Leaking.
Pick your admins carefully. And Co owners. For dropping, just do what i did on trading. Change == 2 till == 1 for mods.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |
Tags for this Thread |