Skocz do zawartości
  • 0

Naprawi ktoś to ?


YoGo!

Pytanie

variables:
    {teren::%player%} = false
    
on load:
    send "&a[ &cHc&lCraft.pl&a ]  &7>> &5&lSkrypt na cuboidy uruchamia sie moze to potrfac do 2 minut" to console
    register new shapeless recipe for paper named "&c&lPlan Budowy - &l16x16" with lore "&c16x16" using paper, book and quill, empty map, air, air, air, air, air, air #-Plan Budowy 16x16

command /teren [<text>]:
    trigger:
        if player has permission "hccraft.core.gracz":
            if arg 1 is not set:
                send "&a========================================"
                send "&e/teren zaloz &6Zakladasz teren"
                send "&e/teren usun &6Usuwasz teren"
                send "&e/teren dodaj <nick> &6Dodaje gracza do terenu"
                send "&e/teren wyrzuc <nick> &6Wyrzuca gracza z terenu"
                send "&e/teren flagi &6Lista dostepnych flag"
                send "&a========================================"
                stop
            if arg 1 is "zaloz":
                if player has paper named "&c&lPlan Budowy - &l16x16" with lore "&c16x16":
                    if {cub.set.%player%} is false:
                        set {pos%player%} to location of player
                        set {pos1%player%} to {pos%player%}
                        set {cub.set.%player%} to true
                        set {cubdom.%player%} to location of player
                        send "&3Trwa zakladanie terenu !" to player
                        make console execute command "pex user %player% add worldguard.*"
                        make console execute command "pex user %player% add worldedit.*"
                        execute player command "//pos1"
                        execute player command "//pos2"        
                        execute player command "//expand 16 n"
                        execute player command "//expand 16 e"
                        execute player command "//expand 16 s"
                        execute player command "//expand 16 w"
                        execute player command "//expand vert"
                        execute player command "rg define teren-%player%"
                        execute player command "rg flag %name of player% pvp deny" 
                        execute player command "rg flag %name of player% lava-fire deny" 
                        execute player command "rg flag %name of player% tnt deny" 
                        execute player command "rg flag %name of player% creeper-explosion deny" 
                        execute player command "rg flag %name of player% other-explosion deny" 
                        execute player command "rg flag teren-%player% greeting &aWchodzisz na teren gracza %player%"
                        execute player command "rg flag teren-%player% farewell &cOpuszczasz teren gracza %player%"
                        execute player command "/rg addowner teren-%player% %player%"
                        make console execute command "pex user %player% remove worldguard.*"
                        make console execute command "pex user %player% remove worldedit.*"
                        loop 90 times:
                            send ""
                        send "&3Teren zostal zalozony !" to player
                        stop
                else:
                    send "&cPotrzebujesz &c&lPlan Budowy - &l16x16 &r&caby zalozyc dzialke" to player

Odnośnik do komentarza
https://skript.pl/temat/21081-naprawi-kto%C5%9B-to/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Gość Usunięty#6317
15 godzin temu, YoGo! napisał:

                        execute player command "//pos1"
                        execute player command "//pos2"        
                        execute player command "//expand 16 n"
                        execute player command "//expand 16 e"
                        execute player command "//expand 16 s"
                        execute player command "//expand 16 w"
                        execute player command "//expand vert"
                        execute player command "rg define teren-%player%"

Nie możesz tak tego zrobić. pos1 i pos2 zaznaczy się tam gdzie stoi gracz, expand i define tak samo.

Odnośnik do komentarza
https://skript.pl/temat/21081-naprawi-kto%C5%9B-to/#findComment-143237
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ę...