może ktoś pomóc bo nie daje bana na dany czas tylko perma...
Z góry dzięki
command /testban2 [<text>] [<offlineplayer>] [<text>] [<text>] [<text>]:
permission: core.ban
trigger:
if arg 1 is "temp":
if arg 2 is not set:
send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executor
else:
if arg 3 contains "s" or "m" or "h" or "d" or "w" or "mo" or "y":
if arg 3 contains "s":
if arg 4 is not set:
send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executor
if arg 4 is set:
set {_} to arg-3
replace all "s" with " seconds" in {_}
ban arg-2 due to "&c&lZostałeś zbanowany na %arg-3% sekund przez &6&l%player% &c&lpowód: &f&l%arg-4%" for {_}
kick arg-2 due to "&c&lZostałeś zbanowany na %arg-3% sekund przez &6&l%executor% &c&lpowód: &f&l%arg-4%"
broadcast {_}
else:
send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [<liczba>s/m/h/d/w/mo] [powód]" to executor
else:
send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [<liczba>s/m/h/d/w/mo] [powód]" to executor
else:
send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executor
Pytanie
Nefiu 2
Witam,
może ktoś pomóc bo nie daje bana na dany czas tylko perma...
Z góry dzięki
command /testban2 [<text>] [<offlineplayer>] [<text>] [<text>] [<text>]: permission: core.ban trigger: if arg 1 is "temp": if arg 2 is not set: send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executor else: if arg 3 contains "s" or "m" or "h" or "d" or "w" or "mo" or "y": if arg 3 contains "s": if arg 4 is not set: send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executor if arg 4 is set: set {_} to arg-3 replace all "s" with " seconds" in {_} ban arg-2 due to "&c&lZostałeś zbanowany na %arg-3% sekund przez &6&l%player% &c&lpowód: &f&l%arg-4%" for {_} kick arg-2 due to "&c&lZostałeś zbanowany na %arg-3% sekund przez &6&l%executor% &c&lpowód: &f&l%arg-4%" broadcast {_} else: send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [<liczba>s/m/h/d/w/mo] [powód]" to executor else: send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [<liczba>s/m/h/d/w/mo] [powód]" to executor else: send "&c&lPoprawne użycie: &f/ban perm/temp [nick] [czas] [powód]" to executorUmieszczam kod w forumowym code.
Odnośnik do komentarza
https://skript.pl/temat/43617-bany/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.