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

Command like HormonesPlugin but not with permissions, with database.

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

  1. LewBr

    LewBr Zombie

    Messages:
    385
    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,968
    GitHub:
    sof3
    HyGlobalHD 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.