9Gold (11-23-2016),LollyBumBum (10-15-2016),Magiertoasti (01-22-2019),Twont (10-25-2016)
Guys your lucky day has come. I am gonna make a stop to some of the admin abuse ;3 xD
This tutorial would be used to stop admins from trading items, and ruining the economy!
Well, this is not the best way to do this. But it works for me till I find a better solution. What this would do is whenever the admin tries to trade someone it would say "Admin's cannot trade!"
So, what you would do is go to Player.Trade.cs
Then you would find the code
and under there you would add;Code:if (Client.Player == target) { SendInfo("{\"key\":\"server.self_trade\"}"); return; }
Then you would change the *rank* for a number. Let's say 80.Code:if (Client.Account.Rank >= *rank*) { SendError("*message*"); return; }
And you would change the *message* for the error you want it to send.
[IMG][/IMG]Code:if (Client.Account.Rank >= 80) { SendError("Admins can trade!"); return;
Simple as that. Basic yet useful.
Hope you enjoy!
Last edited by USARotMG; 10-09-2016 at 05:33 AM.
9Gold (11-23-2016),LollyBumBum (10-15-2016),Magiertoasti (01-22-2019),Twont (10-25-2016)
Maybe not the best tutorial as the admins still can just drop the items on the ground but otherwise thanks!
“If things go wrong, don’t go with them.”
I have a fix for dropping items on the floor xD was thinking about putting here, but. If that is needed will do.
I said easy fix. https://www.mpgh.net/forum/showthread...2#post12124922 there's the tut
There's the code.
Last edited by USARotMG; 10-09-2016 at 07:32 PM.
Its a well thought, and unique idea, but it is so dumb and useless anyways
MikeRaarupBirk (10-13-2016),The 7th Hokage (10-18-2016)
Well, it does stop the admins from abusing which was the point. I had that problem on my server, and people have been asking for help on how to make Items soulbound for admins, so I gave them a simple code that stops admins from trading at all.
The 7th Hokage (10-18-2016)
What? Make /gift for yourself, or completely take it out. This does nothing for /gift. If you don't want admins to be able to gift just change the rank for u only. I also love how Yunus thanks this. ;3