Skocz do zawartości
  • 0

AntyLogout


Jagodowy1337

Pytanie

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
        {walka.%player%} = false
        {ban.%player%} = false
 
on damage of player:
        if {walka.%victim%} is false:
                set {walka.%victim%} to true
                display "ANTY-LOGOUT" on bossbar with 100 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 95 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 90 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 85 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 80 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 75 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 70 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 65 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 60 percent by 10 seconds for victim
                wait 1 tick
                display "ANTY-LOGOUT" on bossbar with 55 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 50 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 45 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 40 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 35 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 30 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 25 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 20 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 15 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 10 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 5 percent by 10 seconds for victim
                wait 1 second
                display "ANTY-LOGOUT" on bossbar with 5 percent by 1 seconds for victim
                set {walka.%victim%} to false
                stop
on quit:
        if {walka.%player%} is true:
                clear the player's inventory
                set {walka.%player%} to false
                kill player
                broadcast "&cGracz &6[%player%] &cWylogowal sie podczas walki!"
                stop

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
variables:
    {logout.allow.%player%} = true

options:

    time: 30 # Time before logout

    ban: 5 # [5] {@type}
    type: hours # {@ban} hours

    message: &7[&e&lSERVER&7]&r \n &c&lYou quit in fight ! You have been banned for [ban] [time] ! # Ban message

    bossbar: &c&lYou are in fight ! Dont logout in next [time] seconds # Bossbar message
    after-bossbar: &a&lYou are no longer in fight ! You can logout now... # Bossbar after message

on damage:
    if {logout.allow.%player%} is true:
        set {logout.allow.%player%} to false
        set {logout.timer.%player%} to now
        set {_} to "{@bossbar}"
        replace all "[time]" with "{@time}" in {_}
        display "%{_}%" on bossbar with 100 percent by {@time} seconds for player
        stop
    else:
        set {logout.timer.%player%} to now
        set {_} to "{@bossbar}"
        replace all "[time]" with "{@time}" in {_}
        display "%{_}%" on bossbar with 100 percent by {@time} seconds for player
        stop

on any move:
    if {logout.allow.%player%} is false:
        if difference between {logout.timer.%player%} and now is bigger or equals to {@time} seconds:
            set {logout.allow.%player%} to true
            delete {logout.allow.%player%}
            display "{@after-bossbar}" on bossbar with 100 percent by {@time} seconds for player
            stop

on quit:
    if {logout.allow.%player%} is false:
        delete {logout.timer.%player%}
        set {logout.allow.%player%} to true
        set {_} to "{@message}"
        replace all "[ban]" with "{@ban}" in {_}
        replace all "[time]" with "{@time}" in {_}
        kick player due to "%{_}%"
        set {logout.banned.%player%} to true
        set {logout.banned-timer.%player%} to now
        stop

on join:
    if {logout.banned.%player%} is true:
        if difference between {logout.banned-timer.%player%} and now is bigger or equals to {@ban} {@type}:
            delete {logout.banned-timer.%player%}
            delete {logout.banned.%player%}
            stop
        else:
            set {_} to "{@message}"
            replace all "[ban]" with "{@ban}" in {_}
            replace all "[time]" with "{@time}" in {_}
            kick player due to "%{_}%"
            stop

Wklejałem już wcześniej, ale zostało cofnięte, gdy dostałem blokadę za 1 dzień za punkty warnów <3

Jeśli coś nie działa to piszta.

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...