Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Szukam] Skryptu/Pluginu DAJE LAJKI !


Rekomendowane odpowiedzi

Opublikowano

Witam szukam skryptu badz pluginu gdzie po kliknieciu tab beda pokazani top gracze chodzi mi o top graczy jaki gracz najwiecej zabil

Przykladowo :

1. 12ddxd

2. PLDJKamilLOL

3. Denzon

 

Serwer PvP: garnizon.maxc.pl Zapraszamy -> 25/40

Opublikowano

W tabapi się pobaw bo jest open-source i można własny plugin zrobić :)

Opublikowano

Poradnika jako takiego nie ma, lecz można ułatwić sobie tworzenie rankingu killi poprzez zrozumienie kodu dostępnego w pluginie. Tutaj:

http://dev.bukkit.org/bukkit-plugins/tabapi/pages/developers/

masz przydatne informacje.

W "Example 1" w tabelce masz podane położenie tab listy - punk p, który jest użyty w przykładnie poniżej.

public void playerJoin(Player p){ //add player to the game, set their priority here
  TabAPI.setPriority(plugin, p, 2);
  TabAPI.updatePlayer(p); //always good to update the player after priority change so that the plugin with priority gets displayed
//other code
}

public void updateTab(Player p){ //update the tab for a player
  TabAPI.setTabString(plugin, p, 0, 0, "players");
  TabAPI.setTabString(plugin, p, 0, 1, "alive"+a);
  TabAPI.setTabString(plugin, p,0, 2,"dead"+d);

  TabAPI.setTabString(plugin, p,1, 0,"kills");
  TabAPI.setTabString(plugin, p, 1,1, playerkills);
  TabAPI.setTabString(plugin, p, 2,0, "deaths");
  TabAPI.setTabString(plugin, p, 1,1, playerdeaths);

  TabAPI.updatePlayer(p);

}

public void removePlayer(Player p){ //player died or left, return priority
  TabAPI.setPriority(plugin, p, -2); //-2 means this plugin isn't using the tab anymore, dont show
  TabAPI.updatePlayer(p); //always good to update the player after priority change so that the plugin with priority gets displayed
                                   
//other code

}

W

TabAPI.setPriority(Plugin, player, int);

masz podane priorytety które masz wypisane:

- Sets the priority of this plugin. The plugin with highest priority will be displayed on the players tab list. Priorities are as follows.

    -2 = no longer active, remove
    -1 = background, only show if nothing else is there
    0 = normal
    1 = high
    2 = highest, always show 

If you no longer want this tab to show for the player, send -2 to this method

Tworzenie kodu własnego po przetłumaczeniu sobie na J. polski staje się dużo łatwiejsze.

Members ---> Pro User ---> Postmaker ---> Black Member ---> MPC Champion ---> MPC Gold Member ---> MPC Winner

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...