options:
nazwa-skryptu: Podliczanie
komenda: admi
variables:
{{@Podliczanie}.admins::*} = 0
{{@Podliczanie}.p::P3lni} = 0
{{@Podliczanie}.p::Phluxx} = 0
{{@Podliczanie}.p::Bamobl123} = 0
{{@Podliczanie}.p::Suei} = 0
{{@Podliczanie}.p::Nikolas1} = 0
on script load:
wait 4 tick
clear {{@Podliczanie}.admins::*}
add "P3lni" to {{@Podliczanie}.admins::*}
add "Phluxx" to {{@Podliczanie}.admins::*}
add "Bamobl123" to {{@Podliczanie}.admins::*}
add "Suei" to {{@Podliczanie}.admins::*}
add "Nikolas1" to {{@Podliczanie}.admins::*}
loop {{@Podliczanie}.admins::*}:
if {{@Podliczanie}.p::%loop-value%} parsed as number isn't number:
set {{@Podliczanie}.p::%loop-value%} to 0
command /{@komenda} [<text>] [<text>] [<text>]:
permission: sk.use
trigger:
if arg 1 is "zobacz":
open chest with 1 rows named "&4&lPodliczanie &c&lAdministracji" to player
format slot 0 of player with 1 of creeper head named "&a&lP3lni %{{@Podliczanie}.p::P3lni}%" to be unstealable
format slot 1 of player with 1 of creeper head named "&a&lPhluxx %{{@Podliczanie}.p::Phluxx}%" to be unstealable
format slot 2 of player with 1 of skeleton head named "&5&lBamobl123 %{{@Podliczanie}.p::Bamobl123}%" to be unstealable
format slot 3 of player with 1 of skeleton head named "&5&lSuei %{{@Podliczanie}.p::Suei}%" to be unstealable
format slot 4 of player with 1 of skeleton head named "&5&lNikolas1 %{{@Podliczanie}.p::Nikolas1}%" to be unstealable
stop
if arg 1 is "dodaj":
if arg 2 is set: #nick
if arg 3 is set: #ilosc
set {_l} to 0
loop {{@Podliczanie}.admins::*}:
if loop-value is arg 2:
set {_l} to 1
if {_l} is 0:
send "&cNie ma takiego administratora! &aDostępni: %{{@Podliczanie}.admins::*}%"
stop
else if arg 3 parsed as number isn't number:
send "&6'%arg 3%' &cnie jest liczbą!"
else:
add arg 3 parsed as integer to {{@Podliczanie}.p::%arg 2%}
send "&aPomyślnie dodano &6'%arg 3%'&a punktów dla &6'%arg 2%'"
make player execute command "/{@komenda} ref"
else:
send "&c/{@komenda} dodaj (nick) (ilosc)"
stop
if arg 1 is "usun":
if arg 2 is set: #nick
if arg 3 is set: #ilosc
set {_l} to 0
loop {{@Podliczanie}.admins::*}:
if loop-value is arg 2:
set {_l} to 1
if {_l} is 0:
send "&cNie ma takiego administratora! &aDostępni: %{{@Podliczanie}.admins::*}%"
stop
else if arg 3 parsed as number isn't number:
send "&6'%arg 3%' &cnie jest liczbą!"
else:
remove arg 3 parsed as integer from {{@Podliczanie}.p::%arg 2%}
send "&aPomyślnie usunięto &6'%arg 3%'&a punktów od &6'%arg 2%'"
make player execute command "/{@komenda} ref"
else:
send "&c/{@komenda} usun (nick) (ilosc)"
stop
if arg 1 is "ref":
loop {{@Podliczanie}.admins::*}:
if {{@Podliczanie}.p::%loop-value%} > 2:
#co ma sie stac, kiedy ktos bedzie mial wiecej niz 2 pkt. %loop-value% to nick gracza
send "&cGracz %loop-value% ma więcej niż 2 pkt."
else if {{@Podliczanie}.p::%loop-value%} < -2:
#co ma sie stac, kiedy ktos bedzie mial mniej niz -2 pkt. %loop-value% to nick gracza
send "&cGracz %loop-value% ma mniej niż -2 pkt."
stop
send "&c/{@komenda} [zobacz|dodaj|usun]"
Dalby rade ktos zrobic tak zeby byl oddzielne permission dla helpera i moderatora tylko do wgladu na /admi zobacz oraz zeby osoby z * mogly reszte czyli 2 permissiony zrobic
@MsMaciek milo by bylo jakbys to dla mnie dopracowal