Admin cuccos, tud playtimeresetet, megtekintést és midnent is! 1.12.2-re lett írva.
options:
pref: &8&l┃ &a&lS&2&lG &8&l┃
command /sg [<text>] [<offlineplayer>] [<text>]:
permission: use.sg
permission message: &cNincs jogod cica ;)
trigger:
if arg 1 is not set:
set {_target} to player
set {_p} to network variable {sg.perc::%{_target}%}
set {_o} to network variable {sg.ora::%{_target}%}
send "{@pref} &7Idő:&e %{_o}% óra %{_p}% perc"
if player is "Kecso" or "Klafaa" or "pit0":
if arg 1 is "reset":
if arg 2 is set:
set {_target} to arg-2
set network variable {sg.perc::%{_target}%} to 0
set network variable {sg.ora::%{_target}%} to 0
send "{@pref} &a%player% &8ideje törölve lett!" to player
if arg 2 is not set:
loop all players:
set {_target} to loop-player
set network variable {sg.perc::%{_target}%} to 0
set network variable {sg.ora::%{_target}%} to 0
send "{@pref} &8Minden idő törölve lett!" to player
if arg-1 is "check":
if arg-2 is set:
set {_target} to arg 2
set {_p} to network variable {sg.perc::%{_target}%}
set {_o} to network variable {sg.ora::%{_target}%}
send "{@pref} &e%{_target}% &7ideje:&e %{_o}% óra %{_p}% perc"
if arg-1 is "list":
if arg 2 is "Admin" or "Staff" or "Mod":
send "" to player
set {_target} to arg-2
send "&f&m-------&a&l %{_target}% &2&lTime &f&m-------" to player
send "" to player
loop {sg.list.%arg-2%::*}:
if loop-value has permission "check.admin":
set {_target} to loop-value
set {_p} to network variable {sg.perc::%{_target}%}
set {_o} to network variable {sg.ora::%{_target}%}
send "{@pref} &e%{_target}% &7ideje:&e %{_o}% óra %{_p}% perc"
send "" to player
if arg-1 is "add":
if arg 2 is set:
if arg 3 is "Admin" or "Staff" or "Mod":
add arg-2 to {sg.list.%arg-3%::*}
send "Siker" to player
if arg-1 is "remove":
if arg 2 is set:
remove arg-2 from {sg.list.Admin::*}
remove arg-2 from {sg.list.Staff::*}
remove arg-2 from {sg.list.Mod::*}
send "Siker" to player
if arg-1 is "help":
send "{@pref} &7Segítség menü ""Kecso számára ;)"" "
send ""
send "&e/sg check [név] &7- Idő lekérése"
send "&e/sg help &7- Segítség menü ""Kecsonak"""
send "&e/sg add [név] [csoport] &7- Csoport hozzáadása"
send "&e/sg remove [név] &7- Csoportból kirugása"
send "&e/sg list [csoport] &7- Csoport idő"
send "&e/sg reset [név] &7- Egy ember számára reset"
send "&e/sg reset &7- Idő resetelése"
every 60 second:
loop all players:
if loop-player has permission "*":
set {_target} to loop-player
set {_alap} to global variable {sg.perc::%loop-player%}
add 1 to {_alap}
set network variable {sg.perc::%{_target}%} to {_alap}
set {_target} to loop-player
set {_player} to global variable {sg.perc::%{_target}%}
if {_player} >= 60:
set {_target} to loop-player
set {_alap2} to global variable {sg.ora::%loop-player%}
add 1 to {_alap2}
set network variable {sg.ora::%{_target}%} to {_alap2}
set network variable {sg.perc::%{_target}%} to 0