Results 1 to 4 of 4
  1. #1
    Moorz's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Location
    Behind a computer
    Posts
    245
    Reputation
    10
    Thanks
    16

    How to make certain items only /giveable to certain people

    Hey guys, at the title says, how do i make it so only certain people can /give certain items, such as if i was making a set for someone specific, and i want only them to be able to /give it? please help, and thanks in advance!
    Last edited by 059; 01-02-2017 at 12:28 PM.

  2. #2
    cxydsaewq's Avatar
    Join Date
    Jan 2014
    Gender
    male
    Posts
    954
    Reputation
    25
    Thanks
    1,341
    My Mood
    Amazed
    You have to add that to your give commend
    something among those lines if I remember correctly:

    if ( (player.Name == "INSERTNAME") && (args == "Dirk of Cronus") )
    return true;

    Keep in mind that this is for SD Source, you might need to change "args" or "player.Name" to something else.


    - - - Updated - - -

    If you want to do that with lots of names I suggest using the "case" feature.
    It looks better and is less load then "if's" all over the place

  3. The Following User Says Thank You to cxydsaewq For This Useful Post:

    Moorz (01-02-2017)

  4. #3
    Moorz's Avatar
    Join Date
    Oct 2016
    Gender
    male
    Location
    Behind a computer
    Posts
    245
    Reputation
    10
    Thanks
    16
    Quote Originally Posted by cxydsaewq View Post
    You have to add that to your give commend
    something among those lines if I remember correctly:

    if ( (player.Name == "INSERTNAME") && (args == "Dirk of Cronus") )
    return true;

    Keep in mind that this is for SD Source, you might need to change "args" or "player.Name" to something else.


    - - - Updated - - -

    If you want to do that with lots of names I suggest using the "case" feature.
    It looks better and is less load then "if's" all over the place
    thanks it worked! just tested it out. @059 @Ahlwong @Raple it is solved

  5. #4
    059's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    California
    Posts
    3,312
    Reputation
    700
    Thanks
    92,771
    Quote Originally Posted by Moorz View Post
    thanks it worked! just tested it out. @059 @Ahlwong @Raple it is solved
    Solved, closed
    My Vouches
    Having an issue with RotMG? Check for the solution here.


    Need Realm items? Come to RealmStock!

    Accepting PayPal - Bitcoin - Giftcards
    Selling ST Sets, Class Top Sets, Life Pots, and much more!


    Find it here: MPGH Sales Thread

Similar Threads

  1. [Request] how to make ESP box only on other players using vb.net
    By alienworks in forum Visual Basic Programming
    Replies: 1
    Last Post: 08-23-2015, 05:55 AM
  2. [Tutorial] How To: Make any item and Vehicle OP in-game :D
    By KINGER908 in forum Unturned Discussions & Help
    Replies: 7
    Last Post: 07-20-2015, 10:59 AM
  3. [Suggestion] A way to make Le Bot accept only CERTAIN items.
    By DaRkKenX in forum Adventure Quest Worlds (AQW) Discussions
    Replies: 2
    Last Post: 03-11-2015, 03:50 PM
  4. How to make a item sprite tutorial given to me by the best @donran
    By CrazyBank in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 20
    Last Post: 06-21-2014, 04:59 PM
  5. [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