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

[Problem]SKRIPT PROBLEM POMOCY!


Rekomendowane odpowiedzi

Opublikowano

Hej posiadam taki skript na zajmowanie terenu komenda :

options:

tag: &f[&3Terenf] #TAG pluginu

size_cuboid: 20 #Wielkosc Cuboida

distance_for_cuboid: 0 #Dystans od spawnu, po ktorym mozna zalozyc cuboid (kratki)

variables:

{cuboid.%player%} = true

 

command /teren [] []:

trigger:

if argument 1 is not set:

message "&8======= &4 &8======="

message "&8 /teren &7 - &3Pomoc dot. terenow"

message "&8 /teren stworz&7 - &3Zaklada cuboid"

message "&8 /teren usun &7 - &3Kasuje cuboid"

message "&8 /teren info [Nick]&7 - &3Informacje o cuboidzie gracza"

message "&8 /teren autor &7- &3Informacje o skrypcie/autorze"

message "&8======= &4 &8======="

argument 1 is "stworz":

if {cuboid.%player%} is false:

if distance between the player and spawn point is greater than {@distance_for_cuboid}:

set {cuboid.%player%} to true

make console execute command "pex user %name of player% add worldguard.*"

make console execute command "pex user %name of player% add worldedit.*"

execute player command "//pos1"

execute player command "//pos2"

execute player command "//outset {@size_cuboid}"

execute player command "//expand vert"

execute player command "/rg define cuboid_%player%"

execute player command "/rg addowner cuboid_%player% %player%"

execute player command "rg flag cuboid_%player% greeting &6Obecny teren nalezy do gracza: &f[&5%player%&f]"

execute player command "rg flag cuboid_%player% farewell &6Opuszczono teren gracza: &f[&5%player%&f]"

execute player command "/rg save"

make console execute command "pex user %name of player% remove worldguard.*"

make console execute command "pex user %name of player% remove worldedit.*"

message "{@tag} &6Tworzenie cuboidu..."

wait 1 real second

message "{@tag} &6Cuboid utworzony w promieniu &8{@size_cuboid} &7kratek"

else:

message "{@tag} &6Masz juz cuboid!"

else:

message "{@tag} &6Aby utworzyc gildie musisz znajdowac sie &8{@distance_for_cuboid} &7kratek od spawnu"

argument 1 is "usun":

if {cuboid.%player%} is true:

set {cuboid.%player%} to false

make console execute command "pex user %name of player% add worldguard.*"

make console execute command "pex user %name of player% add worldedit.*"

execute player command "/rg delete cuboid_%player%"

make console execute command "pex user %name of player% remove worldguard.*"

make console execute command "pex user %name of player% remove worldedit.*"

message "{@tag} &6Kasowanie cuboidu..."

wait 1 real second

message "{@tag} &6Cuboid zostal usuniety"

else:

message "{@tag} &6Nie masz cuboida!"

argument 1 is "info":

make console execute command "pex user %name of player% add worldguard.*"

make console execute command "pex user %name of player% add worldedit.*"

execute player command "/rg info cuboid_%argument 2%"

make console execute command "pex user %name of player% remove worldguard.*"

make console execute command "pex user %name of player% remove worldedit.*"

argument 1 is "autor":

message "&8======= &4 &8======="

message " &7Author: &8Kizys (Sysiu)"

message " &7Website: &8http://kizys.pl/"

message " &7Wersja Skryptu: &8 1.0 BETA"

message " &7Licencja dla: &8PanGold"

on Skript start:

send "" to console

send "&2Teren &f>> &eSkrypt zostal zaladowany!" to the console

send "" to the console

send "&2Author &f>> &eKizys (Sysiu)" to the console

send "" to the console

 

wszystlp smiga itd ale mam problemik poniewaz inny gracz moze stworzyc cuboida na cuboidzie jak zrobic aby dana ilosc kratek od cuba mozna bylo tworzyc dzialke?

 

prosze o przerrobienie skryptu dodajac ta opcje :)

Opublikowano

Sprawdzaj czy gracz podczas stworzenia cuboida może budować np.:

if player can build 50 meters north (nie jestem pewny, ale w UC jest takie coś) ;)

Opublikowano

Moze tak bys tak sie zglosil do autora (do mnie) i nie zmienial informacji o nim ? :)

I bardzo cie prosze nie podawaj sie za autora skoro nim nie jestes :)Skrypt jest w 100% moj a to ze zmieniles jedna komende to nie czyni cie jego tworca :)

Opublikowano

Up@

 

Ja go otrzymałem od kolegi ktory go napisal ..

 

 

Pozatym popatrz na autora ja mam nick inny a drugi jakiego uzywam to tylko PanGlod.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...