Command like HormonesPlugin but not with permissions, with database.

Discussion in 'Requests' started by LewBr, Jan 10, 2018.

  1. LewBr

    LewBr Zombie

    Messages:
    375
    GitHub:
    lewbr
    Hello, i have a question if someone can create a simple plugin like hormones but (SIMPLE), that's connect servers with signal too, and connect to your database, but when you do a broadcastcommand like /nsay you must have some group on database like
    PHP:
    public function getperm($player){
            
    $result $this->db->query("SELECT permission FROM table WHERE nick = '".$player->getName()."");
    $row $result->fetch_assoc();
    $result->close();
            return 
    $row;
        }
     
     
        if(
    $this->getperm($player) == "nsay.use"){
               
    //run the broadcast command for all servers
        
    }else{
    $sender->sendMessage("You dont have permissions.");
    }
    And when the player send the message, the other players receive this message only when he has the same permission? Can someone do that? Or similar

    I don't understand SOF3 code, it's too much for me. :facepalm: :shoghi:
    How did work Hormones with signals connect with other server and etc..?

    Srry bad english, and all, I had to write fast today.
     
  2. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,684
    GitHub:
    sof3
    HyGlobalHD likes this.

Share This Page

  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.