Skocz do zawartości
  • 0

Czasowe banowanie gracza offline


Pytanie

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0




options:
broadcast: true #Czy wiadomosci ze ktos zostal zbanowany skickowany itd ma wyswietlac dla wszystkich


variables:
{stonek::%player%} = 0
on break of stone:
add 1 to {stonek::%player%}
on join:
if player has permission "knugi.chat":
if {stonek::%player%} is smaller than 200:
set {stonek::%player%} to 200
command /stone:
trigger:
if sender is console:
send "&cKomenda tylko dla gracza."
stop
if {stonek::%player%} is smaller than 200:
send "&6Nie mozesz jeszcze pisac na chacie! &8(&6%{stonek::%player%}%&1/&5200)"
stop
send "&6Mozesz pisac na chacie. Wykopales stone: &3%{stonek::%player%}%"
stop
command /banlist:
trigger:
if sender has permission "knugi.banlist":
send "&6Lista banow:"
loop {ban::*}:
send "&3%loop-index% &8- &a%loop-value%"
stop
send "&cNie masz permissi &8(&7knugi.banlist&8)"
stop
command /unban [<offlineplayer>]:
trigger:
if sender has permission "knugi.unban":
if arg 1 is not set:
send "&a/unban <nick> &8- &7daje unbana dla gracza."
stop
if {ban::%arg 1%} is set:
clear {ban::%arg 1%}
send "&6Dales unbana dla gracza: &3%arg 1%"
stop
send "&cNie masz permissi &8(&7knugi.unban&8)"
stop
command /ban [<offlineplayer>] [<text>]:
trigger:
if sender has permission "knugi.ban":
if arg 1 is not set:
send "&a/ban <nick> [<powod>] &8- &7daje bana dla gracza."
stop
if arg 1 is set:
if arg 1 has permission "knugi.ban":
send "&cNie mozesz zbanowac tego gracza!"
stop
if arg 2 is not set:
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal zbanowany przez: &c%sender%"
set {ban::%arg 1%} to "Brak"
if arg 2 is set:
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal zbanowany przez &c%sender% &6za: &a%arg 2%"
set {ban::%arg 1%} to "%arg 2%"
kick arg 1 due to "&eZostales zbanowany! &ePowod: &c%{ban::%arg 1%}%%nl%&aGdy chcesz zakupic unbana &bpisz na skype:%nl%&cxDiviZ"
stop
send "&cNie masz permissi &8(&7knugi.ban&8)"
stop
on join:
if {tempban::%player%} is set:
execute console command "tempban %player% %{tempban::%player%}% czas"
stop
on connect:
if {ban::%player%} is set:
kick player due to "&eJestes zbanowany! &ePowod: &c%{ban::%player%}% %nl%&aGdy chcesz zakupic unbana &bpisz na skype:%nl%&cxDiviZ"
command /kick [<player>] [<text>]:
trigger:
if sender has permission "knugi.kick":
if arg 1 is not set:
send "&a/kick <nick> [<powod>] &8- &7wyrzuca gracza z serwera."
stop
if arg 1 is set:
if arg 1 has permission "knugi.kick":
send "&cNie mozesz skickowac tego gracza!"
stop
if arg 2 is not set:
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal wyrzucony z serwera przez &c%sender%"
kick arg 1 due to "&aZostales wyrzucony &ez serwera przez: %nl%&c%sender%"
stop
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal wyrzucony z serwera przez &c%sender% &6za: &a%arg 2%"
kick arg 1 due to "&aZostales wyrzucony &ez serwera przez: %nl%&c%sender%%nl%&ePowod: &a%arg 2%"
stop
send "&cNie masz permissi &8(&7knugi.kick&8)"
stop
command /tempban [<offlineplayer>] [<integer>] [<text>] [<text>]:
trigger:
if sender has permission "knugi.tempban":
if arg 1 is not set:
send "&a/tempban <nick> <czas> &8- &7banuje gracza na czas."
stop
if arg 1 is set:
if arg 1 has permission "knugi.tempban":
send "&cNie mozesz zbanowac tego gracza!"
stop
if arg 2 is set:
if arg 2 is larger than 0:
if arg 3 is not set:
set {tempban::%arg 1%} to arg 2
send "&6Zbanowales gracza &3%arg 1% &6na czas: &4%arg 2%"
execute console command "tempban %arg 1% %arg 2% czas t"

stop
if sender is not console:
send "&cNie masz permissi &8(&7knugi.tempban&8)"
if arg 3 is "czas":
set {_poczatek} to arg 2
set {_poczatek} to {_poczatek} parsed as integer
loop 1 times:
if {_poczatek} is integer:
if {_poczatek} is smaller than 60:
if {_poczatek} is 1:
set {_koniec} to "&c%{_poczatek}% sekunda"
exit loop
if {_poczatek} is 2 or 3 or 4:
set {_koniec} to "&c%{_poczatek}% sekundy"
exit loop
set {_koniec} to "&c%{_poczatek}% sekund"
exit loop
if {_poczatek} is larger than 59:
if {_poczatek} is larger than 3599:
#Hours
set {_m} to "%{_poczatek} / 60%"
loop length of {_m} times:
if subtext of {_m} from characters loop-number-2 to loop-number-2 is ".":
set {_loop} to loop-number-2
set {_loop} to {_loop} parsed as integer
set {_m} to first {_loop} - 1 characters of {_m}
exit loop
set {_m} to {_m} parsed as integer
set {_s} to "%60 * {_m}%"
set {_s} to {_s} parsed as integer
set {_s} to "%{_poczatek} - {_s}%"
set {_s} to {_s} parsed as integer
set {_h} to "%{_m} / 60%"
loop length of {_h} times:
if subtext of {_h} from character loop-number-2 to loop-number-2 is ".":
set {_loop} to loop-number-2
set {_loop} to {_loop} parsed as integer
set {_h} to first {_loop} - 1 characters of {_h}
exit loop
set {_h} to {_h} parsed as integer
set {_m} to "%{_m} - (60 * {_h})%"
set {_m} to {_m} parsed as integer
set {_sk} to ""
if {_s} is 1:
set {_sk} to "a"
if {_s} is 2 or 3 or 4:
set {_sk} to "y"
set {_mk} to ""
if {_m} is 1:
set {_mk} to "a"
if {_m} is 2 or 3 or 4:
set {_mk} to "y"
set {_hk} to ""
if {_h} is 1:
set {_hk} to "a"
if {_h} is 2 or 3 or 4:
set {_hk} to "y"
set {_mko} to ""
if {_m} is larger than 0:
set {_mko} to ", %{_m}% minut%{_mk}%"
set {_sko} to ""
if {_s} is larger than 0:
set {_sko} to ", %{_s}% sekund%{_sk}%"
set {_koniec} to "%{_h}% godzin%{_hk}%%{_mko}%%{_sko}%"
exit loop
#Minutes
set {_m} to "%{_poczatek} / 60%"
loop length of {_m} times:
if subtext of {_m} from characters loop-number-2 to loop-number-2 is ".":
set {_loop} to loop-number-2
set {_loop} to {_loop} parsed as integer
set {_m} to first {_loop} - 1 characters of {_m}
exit loop
set {_m} to {_m} parsed as integer
set {_s} to "%60 * {_m}%"
set {_s} to {_s} parsed as integer
set {_s} to "%{_poczatek} - {_s}%"
set {_s} to {_s} parsed as integer
set {_sk} to ""
if {_s} is 1:
set {_sk} to "a"
if {_s} is 1 or 2 or 3 or 4:
set {_sk} to "y"
set {_mk} to ""
if {_m} is 1:
set {_mk} to "a"
if {_m} is 2 or 3 or 4:
set {_mk} to "y"
set {_sko} to ""
if {_s} is larger than 0:
set {_sko} to ", %{_s}% sekund%{_sk}%"
set {_mko} to ""
set {_mko} to "%{_m}% minut%{_mk}%"
set {_koniec} to "%{_mko}%%{_sko}%"
exit loop
kick arg 1 due to "&eJestes zbanowany na &a%{_koniec}% %nl%&eCzekaj na UnBana!"
if arg 4 is set:
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal zbanowany czasowo przez &c%sender% &6na czas: &5%{_koniec}%"
command /mute [<offlineplayer>] [<integer>]:
trigger:
if sender has permission "knugi.mute":
if arg 1 is not set:
send "&a/mute <nick> [<czas>] &8- &7mutuje gracza"
stop
if arg 1 is set:
if arg 1 has permission "knugi.mute":
send "&cNie mozesz zmutowac tego gracza!"
stop
if arg 2 is not set:
if {mute::%arg 1%} is set:
clear {mute::%arg 1%}
send "&7Mozesz juz pisac. &c%sender% &7Cie odmutowal." to arg 1
send "&6Odmutowales gracza &c%arg 1%"
stop
set {mute::%arg 1%} to -1
send "&6Zostales zmutowany przez &c%sender%"
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal zmutowany przez &c%sender%"
stop
if arg 2 is set:
set {mute::%arg 1%} to arg 2
send "&6Zostales zmutowany przez &c%sender% &6na: &4%arg 2% &6sekund."
if {@broadcast} is true:
broadcast "&6Gracz &3%arg 1% &6zostal zmutowany przez &c%sender% &6na: &4%arg 2% &6sekund."
stop
send "&cNie masz permissi &8(&7knugi.mute&8)"
stop
on chat:
if {stonek::%player%} is smaller than 200:
cancel event
send "&7Nie wykopales jeszcze 200 stone. &6/stone"
stop
if {mute::%player%} is set:
cancel event
send "&7Jestes uciszony."
stop
if player is op:
set message to "&4%message%"
stop
if player has permission "knugi.vip":
set message to "&7%message%"
every 1 second:
loop {mute::*}:
if {mute::%loop-index%} is larger than 0:
remove 1 from {mute::%loop-index%}
if {mute::%loop-index%} is 0:
clear {mute::%loop-index%}
set {_g} to loop-index
set {_g} to {_g} parsed as offlineplayer
send "&7Mozesz juz pisac. Twoj mute sie skonczyl." to {_g}
loop {tempban::*}:
if {tempban::%loop-index%} is larger than 0:
remove 1 from {tempban::%loop-index%}
if {tempban::%loop-index%} is 0:
clear {tempban::%loop-index%}  


Odnośnik do komentarza
https://skript.pl/temat/9534-czasowe-banowanie-gracza-offline/#findComment-72569
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ę...