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

Command Help

Discussion in 'Development' started by ZackyVN, Jul 26, 2018.

  1. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    150
    How to create a command?

    Example: /admin create [Player]

    I want to talk about "create". Idk how to add it. Someone Help me plz!!!

    P/S: Sorry for my bad English :D & I'm Noob at PMMP
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You can use the $args array to access the arguments that the user typed when executing the command
    upload_2018-8-4_16-16-2.png

    In this case $args[0] would be "create"
     
    Muqsit likes this.
  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.