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

I need help

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

  1. Mochi

    Mochi Baby Zombie

    Messages:
    113
    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:
    598
    GitHub:
    GamakCZ
    Probably caused by other functions in your sw plugin, try my SkyWars plugin ;)
     
  3. Mochi

    Mochi Baby Zombie

    Messages:
    113
  4. Mochi

    Mochi Baby Zombie

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

    Mochi Baby Zombie

    Messages:
    113
    Sorry for bad english
     
  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.