Results 1 to 9 of 9
  1. #1
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed

    [FSOD] How to make admins unnable to trade!

    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


    Code:
                if (Client.Player == target)
                {
                    SendInfo("{\"key\":\"server.self_trade\"}");
                    return;
                }
    and under there you would add;

    Code:
                if (Client.Account.Rank >= *rank*)
                {
                    SendError("*message*");
                    return;
                }
    Then you would change the *rank* for a number. Let's say 80.
    And you would change the *message* for the error you want it to send.

    Code:
                if (Client.Account.Rank >= 80)
                {
                    SendError("Admins can trade!");
                    return;
    [IMG][/IMG]

    Simple as that. Basic yet useful.



    Hope you enjoy!
    Last edited by USARotMG; 10-09-2016 at 05:33 AM.

  2. The Following 4 Users Say Thank You to USARotMG For This Useful Post:

    9Gold (11-23-2016),LollyBumBum (10-15-2016),Magiertoasti (01-22-2019),Twont (10-25-2016)

  3. #2
    Orbit's Avatar
    Join Date
    Feb 2014
    Gender
    male
    Location
    In-Orbit
    Posts
    672
    Reputation
    55
    Thanks
    484
    My Mood
    Aggressive
    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.”

  4. #3
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    I have a fix for dropping items on the floor xD was thinking about putting here, but. If that is needed will do.

  5. #4
    sgrawsreghawrhgwrhgr's Avatar
    Join Date
    Oct 2014
    Gender
    male
    Location
    UK
    Posts
    516
    Reputation
    10
    Thanks
    727
    My Mood
    Angelic
    Quote Originally Posted by Orbit View Post
    Maybe not the best tutorial as the admins still can just drop the items on the ground but otherwise thanks!
    make all items by admins be soulbound when dropped, not hard

  6. #5
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    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.

  7. #6
    lkdjnfoskjednfblksjdfn's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    127.0.0.1
    Posts
    1,340
    Reputation
    198
    Thanks
    841
    My Mood
    Inspired
    Its a well thought, and unique idea, but it is so dumb and useless anyways

  8. The Following 2 Users Say Thank You to lkdjnfoskjednfblksjdfn For This Useful Post:

    MikeRaarupBirk (10-13-2016),The 7th Hokage (10-18-2016)

  9. #7
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    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.

  10. #8
    coolguy950's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    rrrrrrrrrrrrrrrrr
    Posts
    146
    Reputation
    10
    Thanks
    30
    My Mood
    Paranoid
    Quote Originally Posted by USARotMG View Post
    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.
    Potentially very useful, but I think you forgot about the possibility of the abuse of /gift.
    faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaargraarg

  11. The Following User Says Thank You to coolguy950 For This Useful Post:

    The 7th Hokage (10-18-2016)

  12. #9
    USARotMG's Avatar
    Join Date
    Feb 2016
    Gender
    male
    Location
    USA
    Posts
    59
    Reputation
    10
    Thanks
    23
    My Mood
    Amazed
    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

Similar Threads

  1. [Help Request] [FSoD] How to make Editor available to everyone?
    By SwitchBot in forum Realm of the Mad God Private Servers Help
    Replies: 1
    Last Post: 07-20-2016, 10:45 PM
  2. [Release] How to Make A Two Player Trading System in Minecraft (1.7.4)
    By belinkster in forum Minecraft Tutorials
    Replies: 1
    Last Post: 12-16-2013, 05:57 PM
  3. [Tutorial] How to make a WarRock Admin Account (Fake)
    By Snape in forum WarRock Discussions
    Replies: 15
    Last Post: 03-15-2010, 11:34 AM
  4. [TuT]How to make something run only as Admin
    By Invidus in forum Visual Basic Programming
    Replies: 2
    Last Post: 03-07-2010, 07:15 PM
  5. [Trade] How to make OPK and Invi Tutorial
    By Massaka in forum WarRock - International Hacks
    Replies: 6
    Last Post: 11-21-2007, 05:32 AM