1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How to make HUD display

Discussion in 'Facepalm' started by MCMarsBoyee, Jun 29, 2017.

  1. MCMarsBoyee

    MCMarsBoyee Spider Jockey

    Messages:
    30
    GitHub:
    mcmarsboyee
    I want to know how to make a custom HUD on my server that will pop up a certain message on the display above the inventory. It will also have to contain the xyz coords of the player, and a random text.

    Please help me. I am a noob at PHP and I don't know anything about how to code player events or anything like that. I am hoping to learn from the source code but it seems I cannot find something that would do the above.

    Thanks.
     
  2. xXNiceAssassinlo

    xXNiceAssassinlo Spider

    Messages:
    14
    GitHub:
    xXNiceAssassinlo
    Just use hud basic code :/
     
  3. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    PHP:
    /** @var Player $p*/
    $p->sendPopup($p->x$p->y$p->"Text");
    2nd method
    PHP:
    $p->sendTip($p->x$p->y$p->"text");
    I advice you to use Tip because popup is cancelled when player switch items in inventory
     
  4. Zayd

    Zayd Witch

    Messages:
    55
    GitHub:
    ZaydPE
    You'll also need a task.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.