1. Please write code to check whether user is in range of the Cupboard
     
  2. Wulf

    Wulf Community Admin

    Check the code for my MasterKey plugin. The Zone Manager plugin would also be an example, or even CupboardRadius.
     
  3. It's hard for me to understand I'm not a programmer.
    Please if not difficult give the finished code to check whether the user is near his cupboards

    Something like this:

    if (!HasPermission(player, "cupboards"))
    {
    Sendreply (player, "You are not near your cupboards");
    return;
    }
     
  4. Wulf

    Wulf Community Admin

    All that would do is a permissions check, that doesn't actually check if they are in the cupboard radius.