I need help

Discussion in 'Help' started by Mochi, May 15, 2019.

  1. Mochi

    Mochi Slime

    Messages:
    83
    Hi, I want to add kills of player in SkyWars by svile. How to make this? and
    I don't know where to place the public function

    Code :
    PHP:
    public function addKill($p) {
      if(isset(
    $this->kills[$p]))
          ++
    $this->kills[$p];
       else 
    $this->kills[$p] = 1;
    }
    public function 
    resetKills($p){
      
    $this->kills[$p] = 0;
    }
     

    Attached Files:

  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    499
    GitHub:
    GamakCZ
    Probably caused by other functions in your sw plugin, try my SkyWars plugin ;)
     
  3. Mochi

    Mochi Slime

    Messages:
    83
  4. Mochi

    Mochi Slime

    Messages:
    83
    can you tell me how to install the public function?
     
  5. Mochi

    Mochi Slime

    Messages:
    83
    Sorry for bad english
     

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.