Skocz do zawartości

skrypt na gamemody gm.


vertez69
 Udostępnij

Rekomendowane odpowiedzi

Skrypt nie zabardzo rozbudowany i profesjonalny ale ja sam musiałem napisać taki skript, ponieważ nigdzie taiego nie znalazlem potrzbny mi byl na zmienianie wiadomosci gamemode o to moj skrypt .

command /gm [<text>] [<player>]:
        permission: admin.gm
        permission message: "&cNie masz permisji"
        trigger:
                if arg 1 is not set:
                        send "&cUzycie &7/&agm &aCreative&7,&aSurvival&7,&aSpectator &7[Gracz]"
                if arg 2 is set:
                        set {_arg2} to arg 2
                        if arg 1 is "1" or "Creative":
                                execute console command "/minecraft:gamemode 1 %arg-2%"
                                send "&7Zmieniles tryb gry gracza &a%arg-2% &7na &aCreative"
                                loop 100 times:
                                        send "" to {_arg2}
                                send "&7Twoj tryb gry zostal zmieniony na &aCreative" to {_arg2}
                        if arg 1 is "0" or "Survival":
                                execute console command "/minecraft:gamemode 0 %arg-2%"
                                send "&7Zmieniles tryb gry gracza &a%arg-2% &7na &aSurvival"
                                loop 100 times:
                                        send "" to {_arg2}
                                send "&7Twoj tryb gry zostal zmieniony na &aSurvival" to {_arg2}
                        if arg 1 is "3" or "Spectator":
                                execute console command "/minecraft:gamemode 3 %arg-2%"
                                loop 100 times:
                                        send "" to {_arg2}
                                send "&7Twoj tryb gry zostal zmieniony na &aSpectator" to {_arg2}
                if arg 2 is not set:
                        if arg 1 is "1" or "Creative":
                                execute console command "/minecraft:gamemode 1 %player%"
                                loop 100 times:
                                        send ""
                                send "&7Zmieniles tryb gry na &aCreative"
                        if arg 1 is "0" or "Survival":
                                execute console command "/minecraft:gamemode 0 %player%"
                                loop 100 times:
                                        send ""
                                send "&7Zmieniles tryb gry na &aSurvival"
                        if arg 1 is "3" or "Spectator":
                                execute console command "/minecraft:gamemode 3 %player%"
                                loop 100 times:
                                        send ""
                                send "&7Zmieniles tryb gry na &aSpectator"
                                stop
                                if arg 2 is set:
                                        if arg 1 is "1" or "Creative":
                                                execute console command "/minecraft:gamemode 1 %arg-2%"
                                                send "&7Zmieniles tryb gry gracza &a%arg-2% na &aCreative"

Odnośnik do komentarza
Udostępnij na innych stronach

Za bardzo nie wiem po co w tym od razu czyszczenie swojego/czyjegoś czatu.

I po co to set {_arg2} to arg 2 , jak można dać po prostu send "tekst" to arg 2.

Masz tu trochę zedytowany

command /gm [<text>] [<player=%player%>]:
 permission: gm.use
 permission message: &cNie masz pozwolenia na używanie tej komendy!
 trigger:
  if arg 1 is not set:
   send "&cUzycie&f: &7/&agm &aCreative&7,&aSurvival&7,&aSpectator &7[Gracz]"
  if arg 1 is "survival" or "surv" or "s" or "sv" or "0":
   set the gamemode of the arg 2 to survival 
   send "&7Twoj tryb gry zostal zmieniony na &aSurvival" to arg 2
  if arg 1 is "creative" or "c" or "1":
   set the gamemode of the arg 2 to creative 
   send "&7Twoj tryb gry zostal zmieniony na &aCreative" to arg 2
  if arg 1 is "adventure" or "adv" or "ad" or "2":
   set the gamemode of the arg 2 to adventure
   send "&7Twoj tryb gry zostal zmieniony na &aAdventure" to arg 2
  if arg 1 is "spectator" or "spec" or "sp" or "3":
   set the gamemode of the arg 2 to spectator
   send "&7Twoj tryb gry zostal zmieniony na &aSpectator" to arg 2

 

Edytowane przez THEzombiePL
Odnośnik do komentarza
Udostępnij na innych stronach

  • bludis odblokował(a) ten temat
  • Szifter zablokował(a) ten temat
Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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