Skocz do zawartości
  • 0

Latanie dla rangi na działkach w Protection Stones


Pytanie

Poszukuję skryptu, który pozwoli osobom z rangą np VIP latanie na swojej dzialce z tego pluginu. Próbowałem wiele metod ale nic nie poskutkowało. Najlepiej by wyglądało to tak:
Osoba z rangą VIP, po wejsciu na swoją działkę, automatycznie dostaje fly, moze sobie latac itd, a po wyjsciu z niej od razu usuwa tego fly. Dobrze by było gdyby inni graczej wchodząc na jego działkę już nie mogli latać. Tylko Owner tej działki. Jest takie coś możliwe do zrobienia? Czy powinienem zrezygnować i zabrać benefit latania na działkach dla VIPA?

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0

Wiec zostaw tak...  Co 3 minuty bedzie sprawdzac czy gracz niemajacy vipa ma fly, mam nadzieje ze nie bedzie Ci to przeszkadzac.

every 3 minutes:
    loop all players:
        if {latanie.%loop-value%} is set:
            if loop-value doesn't have permission "vip":
                set loop-value's flight mode to false
                delete {latanie.%loop-value%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340099
Udostępnij na innych stronach

  • 0
17 minut temu, Cinu2421 napisał:

Wiec zostaw tak...  Co 3 minuty bedzie sprawdzac czy gracz niemajacy vipa ma fly, mam nadzieje ze nie bedzie Ci to przeszkadzac.

every 3 minutes:
    loop all players:
        if {latanie.%loop-value%} is set:
            if loop-value doesn't have permission "vip":
                set loop-value's flight mode to false
                delete {latanie.%loop-value%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

a gdybym zmniejszyl do 30 sekund to wplynie jakos na optymalizacje serwera?

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340101
Udostępnij na innych stronach

  • 0

Zalezy od ilosci skryptow, pluginow oraz ilosci graczy na serwerze. Mozesz zmniejszyc do 1 minuty, poza tym nikt raczej nie ogarnie w kilka sekund ze mu vipa zabralo, chyba ze jest jakies powiadomienie

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340102
Udostępnij na innych stronach

  • 0
W dniu 18.01.2024 o 14:54, Cinu2421 napisał:

Zalezy od ilosci skryptow, pluginow oraz ilosci graczy na serwerze. Mozesz zmniejszyc do 1 minuty, poza tym nikt raczej nie ogarnie w kilka sekund ze mu vipa zabralo, chyba ze jest jakies powiadomienie

Powiadomienia nie ma, ale na tabie ma licznik ile mu tego vipa jeszcze zostalo. Skryptów mam nie wiele, ale jeden obszerny bo obejmuje cały itemshop, i ma ponad 500 linijek kodu.. Pluginów 60.

 

W dniu 18.01.2024 o 14:56, Ajsey napisał:

Powiadomienia nie ma, ale na tabie ma licznik ile mu tego vipa jeszcze zostalo. Skryptów mam nie wiele, ale jeden obszerny bo obejmuje cały itemshop, i ma ponad 500 linijek kodu.. Pluginów 60.

A poczekaj bo jest problem. To z trzema minutami chyba nie działa. Bo właśnie na multikoncie juz dawno minął vip a nadal sobie moze latac, nawet poza działką

ivall

Łączę posty

Notatka dodana przez ivall

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340103
Udostępnij na innych stronach

  • 0

Zobacz teraz: 

every 1 minutes:
    loop all players:
        if {latanie.%loop-player%} is set:
            if loop-player doesn't have permission "vip":
                set loop-player's flight mode to false
                delete {latanie.%loop-player%}
                broadcast "Odbieram latanie dla: %loop-player%"
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Edytowane przez Cinu2421
Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340105
Udostępnij na innych stronach

  • 0
3 minuty temu, Cinu2421 napisał:

Zobacz teraz: 

every 1 minutes:
    loop all players:
        if {latanie.%loop-player%} is set:
            if loop-player doesn't have permission "vip":
                set loop-player's flight mode to false
                delete {latanie.%loop-player%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Wciąż to samo

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340107
Udostępnij na innych stronach

  • 0
7 minut temu, Cinu2421 napisał:

Nie wiem dalczego nie wykrywa permisji w evencie every 1 minute, musisz poczekac az ktos Ci pomoze.

a ty testowałeś jakoś u siebie? I czy działa?

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340111
Udostępnij na innych stronach

  • 0

Powinno dzialac.

every 1 minutes:
    loop all players where [input doesn't have permission "vip"]:
        if {latanie.%loop-players%} is set:
            set loop-player's flight mode to false
            send "&7Fly &6Latanie wylaczone" to loop-players
            wait 5 seconds
            delete {latanie.%loop-players%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 5 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340114
Udostępnij na innych stronach

  • 0
Godzinę temu, Cinu2421 napisał:

Powinno dzialac.

every 1 minutes:
    loop all players where [input doesn't have permission "vip"]:
        if {latanie.%loop-players%} is set:
            set loop-player's flight mode to false
            send "&7Fly &6Latanie wylaczone" to loop-players
            wait 5 seconds
            delete {latanie.%loop-players%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true
                        stop
                    if player is the members of the region:
                        send "&7Wkroczyles na dzialke kumpla... &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 10 seconds
                        delete {latanie.%player%}
                        stop
                    if player is the members of the region:
                        send "&7Wyszedles z dzialki kumpla... &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 5 seconds
                        delete {latanie.%player%}

on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Wciąż nie działa :( nie usuwa fly'a po minucie

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340118
Udostępnij na innych stronach

  • 0

Wyjdz z dzialki dodaj vipa i odczekaj z 10 sekund przed wejsciem. Wejdz na dzialke sprawdz czy masz fly. jesli tak usun sobie vipa i odczekaj minute... Jesli dziala daj znac. Poprawie kilka rzeczy zeby lepiej dzialalo. U mnie dziala.

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340120
Udostępnij na innych stronach

  • 0
8 minut temu, Cinu2421 napisał:

Wyjdz z dzialki dodaj vipa i odczekaj z 10 sekund przed wejsciem. Wejdz na dzialke sprawdz czy masz fly. jesli tak usun sobie vipa i odczekaj minute... Jesli dziala daj znac. Poprawie kilka rzeczy zeby lepiej dzialalo. U mnie dziala.

faktycznie dziala, nie wiem co wtedy nie tak było

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340122
Udostępnij na innych stronach

  • 0

Dobra teraz powinno byc znacznie lepiej, jesli chcesz mozesz ustawic mniejsza liczbe zamiast 30 sekund. Jesli cos bedzie nie tak najwyzej zwieksz. Mozesz sprobowac nawet 10 sekund. Chociaz przy duzej ilosci graczy bedzie to raczej juz obciazac serwer.

every 30 seconds:
    loop all players where [input doesn't have permission "vip"]:
        if {latanie.%loop-players%} is set:
            if "%owner of region at loop-player%" is not loop-players:
                set loop-player's flight mode to false
                send "&7Fly &6Latanie wylaczone" to loop-players
                wait 5 seconds
                if "%owner of region at loop-player%" is not loop-players:
                    delete {latanie.%loop-players%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 5 seconds
                        if "%owner of region at player%" is not player:
                            delete {latanie.%player%}
on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

Edytowane przez Cinu2421
Poprawka kodu. Prawdopodobne zakonczenie tematu.
Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340125
Udostępnij na innych stronach

  • 0
W dniu 18.01.2024 o 19:31, Cinu2421 napisał:

Dobra teraz powinno byc znacznie lepiej, jesli chcesz mozesz ustawic mniejsza liczbe zamiast 30 sekund. Jesli cos bedzie nie tak najwyzej zwieksz. Mozesz sprobowac nawet 10 sekund. Chociaz przy duzej ilosci graczy bedzie to raczej juz obciazac serwer.

every 30 seconds:
    loop all players where [input doesn't have permission "vip"]:
        if {latanie.%loop-players%} is set:
            if "%owner of region at loop-player%" is not loop-players:
                set loop-player's flight mode to false
                send "&7Fly &6Latanie wylaczone" to loop-players
                wait 5 seconds
                if "%owner of region at loop-player%" is not loop-players:
                    delete {latanie.%loop-players%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 5 seconds
                        if "%owner of region at player%" is not player:
                            delete {latanie.%player%}
on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

hej pojawia sie kolejny problem, jak gracz jest na dzialce i lata, to jak tepnie sie na spawna to z jakiegos powodu nadal moze latac ;/ po mimo ze jest tam flaga fly na deny

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340297
Udostępnij na innych stronach

  • 0
W dniu 18.01.2024 o 19:31, Cinu2421 napisał:

Dobra teraz powinno byc znacznie lepiej, jesli chcesz mozesz ustawic mniejsza liczbe zamiast 30 sekund. Jesli cos bedzie nie tak najwyzej zwieksz. Mozesz sprobowac nawet 10 sekund. Chociaz przy duzej ilosci graczy bedzie to raczej juz obciazac serwer.

every 30 seconds:
    loop all players where [input doesn't have permission "vip"]:
        if {latanie.%loop-players%} is set:
            if "%owner of region at loop-player%" is not loop-players:
                set loop-player's flight mode to false
                send "&7Fly &6Latanie wylaczone" to loop-players
                wait 5 seconds
                if "%owner of region at loop-player%" is not loop-players:
                    delete {latanie.%loop-players%}
on region enter:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wkroczyles na swoja dzialke. &6Latanie wlaczone"
                        set player's flight mode to true
                        set {latanie.%player%} to true

on region exit:
    event-entity is a player:
        if "%event-region%" contains "ps":
            player has permission "vip":
                if gamemode of player is survival:
                    if player is the owner of the region:
                        send "&7Wyszedles z swojej dzialki. &6Latanie wylaczone"
                        set player's flight mode to false
                        wait 5 seconds
                        if "%owner of region at player%" is not player:
                            delete {latanie.%player%}
on damage:
    if damage was caused by fall:
        if {latanie.%victim%} is set:
            cancel event
on quit:
    if {latanie.%player%} is set:
        set player's flight mode to false
        delete {latanie.%player%}
on break of jukebox:
    "%region at player%" is set:
        if player is the owner of region at player:
            player has permission "vip":
                set player's flight mode to false
                delete {latanie.%player%}

 

i poza tym nagle gosc dodal swojego drugiego kolege, ktory ma vipa i w ogole obojga nie moga latac, ale dal go jako drugi owner

Odnośnik do komentarza
https://skript.pl/temat/56891-latanie-dla-rangi-na-dzia%C5%82kach-w-protection-stones/#findComment-340306
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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