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

[PYTANIE]Plugin na 2 drużyny


Gibzy

Rekomendowane odpowiedzi

Opublikowano

Witajcie mam problem więc na serwerze potrzebuje pluginu który pozwoliłby mi stworzyc 2 druzyny czerwoną i niebieską

gracze z czerwonej nie mogliby się wzajemnie bić a mogliby atakować drużynę niebieską

Opublikowano

Skrypt nie należy do mnie

variables:
        {team-red.%player%} = false
        {team-blue.%player%} = false
options:
# Lider Druzyny Czerwonej - Licza sie duze litery (chyba)
        LiderRed: SebekTMPL
# Lider Druzyny Niebieskiej - Licza sie duze litery (chyba)
        LiderBlue: Dzikoysk
# Logo Skryptu
        logo: &8[&9&lTEAMS&8]
# Glowna Komenda:
        maincommand: druzyna
command /{@maincommand} [<text>]:
        trigger:
                if arg 1 is not set:
                        send "{@logo} &aWybierz druzyne: &6/{@maincommand} red/blue"
                        stop
                if arg 1 is "red":
                        if {team-blue.%player%} is true:
                                send "{@logo} &aNalezysz juz do druzyny &bNiebieskiej &a!"
                                stop
                        if {team-red.%player%} is true:
                                send "{@logo} &aNalezysz juz do druzyny &cCzerwonej &a!"
                                stop
                        if {team-red.%player%} is false:
                                if {team-blue.%player%} is false:
                                        send "{@logo} &aDolaczyles do druzyny &cCzerwonej &a!"
                                        broadcast "&3%name of player% &adolaczyl do druzyny &cCzerwonej &a!"
                                        set {team-red.%player%} to true
                                        stop
                if arg 1 is "blue":
                        if {team-blue.%player%} is true:
                                send "{@logo} &aNalezysz juz do druzyny &9Niebieskiej &a!"
                                stop
                        if {team-red.%player%} is true:
                                send "{@logo} &aNalezysz juz do druzyny &cCzerwonej &a!"
                                stop
                        if {team-red.%player%} is false:
                                if {team-blue.%player%} is false:
                                        send "{@logo} &aDolaczyles do druzyny &9Niebieskiej &a!"
                                        broadcast "&3%name of player% &adolaczyl do druzyny &9Niebieskiej &a!"
                                        set {team-blue.%player%} to true
                                        stop
                if arg 1 is "opusc":
                        if {team-blue.%player%} is true:
                                if {team-red.%player%} is false:
                                        set {team-blue.%player%} to false
                                        broadcast "&3%name of player% &aopuscil druzyne &9Niebieska &a!"
                                        stop
                        if {team-red.%player%} is true:
                                if {team-blue.%player%} is false:
                                        set {team-red.%player%} to false
                                        broadcast "&3%name of player% &aopuscil druzyne &cCzerwona &a!"
                                        stop
                        if {team-red.%player%} is false:
                                if {team-blue.%player%} is false:
                                        send "{@logo} &aNie jestes w zadnej druzynie !"
                                        wait 2 tick
                                        make player execute command "teams"
                                        stop
on chat:
        if {team-red.%player%} is true:
                set {_red} to "%name of player%"
                if {_red} is "{@LiderRed}":
                        set the player's display name to "&8[&cRED&8-&cLEADER&8] &4%player%"
                        set the player's tablist name to "&cRED &4%name of player%"
                        stop
                set the player's display name to "&8[&cRED&8] &4%player%"
                set the player's tablist name to "&cRED &4%name of player%"
                stop
        if {team-blue.%player%} is true:
                set {_blue} to "%name of player%"
                if {_blue} is "{@LiderBlue}":
                        set the player's display name to "&8[&9BLUE&8-&9LEADER&8] &b%player%"
                        set the player's tablist name to "&9BLUE &b%name of player%"
                        stop
                set the player's display name to "&8[&9BLUE&8] &b%player%"
                set the player's tablist name to "&9BLUE &b%name of player%"
                stop
        if {team-blue.%player%} is false:
                if {team-red.%player%} is false:
                        set the player's tablist name to "&f%name of player%"
                        stop
on login:
        if {team-red.%player%} is true:
                set the player's tablist name to "&cRED &4%name of player%"    
                stop
        if {team-blue.%player%} is true:
                set the player's tablist name to "&9BLUE &b%name of player%"
                stop
        if {team-blue.%player%} is false:
                if {team-red.%player%} is false:
                        set the player's tablist name to "&f%name of player%"
                        stop

1394047278-U990178.png

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...