options: format-pl: &a&l{POSITION} &7- &6&l{PLAYER} &7(&d&l{POINTS}&7) title-pl: &c&lTopka graczy null-pl: &a{POSITION} &d- BRAK amount-pl: 10 refresh-time: 150 tag: &7&l[&a&lFG&5&l-&6&lHolo&7&l] command /fgholo [] [] []: trigger: if arg-1 is "player": if arg-2 is "place": set {_i} to 1 while {fgholotop::player-tops::%{_i}%} is set: set {_i} to {_i}+1 set {fgholotop::player-tops::%{_i}%} to {_i} set {fgholotop::player-tops::%{_i}%::loc} to location of player create holo object "" with id "fgholotop-pl-%{_i}%" at location of player execute console command "fgholo refresh" send "{@tag} &2Holo-Topka graczy o &eID %{_i}% &2zostala pomyslnie utworzona!" else if arg-2 is "delete": if arg-3 is not set: send "{@tag} &4ID Holo-Topki graczy nie zostalo wprowadzone!" stop if {fgholotop::player-tops::%arg-3%} is not set: send "{@tag} &4Holo-Topka graczy o &eID %arg-3% &4nie istnieje!" stop delete holo object "fgholotop-pl-%arg-3%" delete {fgholotop::player-tops::%arg-3%} delete {fgholotop::player-tops::%arg-3%::loc} send "{@tag} &2Holo-Topka graczy o &eID %arg-3% &2zostala pomyslnie usunieta!" else if arg-2 is "list": if size of {fgholotop::player-tops::*} = 0: send "{@tag} &2Brak Holo-Topek graczy!" stop send "{@tag} &2Lista Holo-Topek graczy:" loop {fgholotop::player-tops::*}: send "&eID: %loop-value% &7&lKoordy: &e&l%{fgholotop::player-tops::%loop-value%::loc}%" else: send "{@tag} &4Niepoprawny argument! Wpisz &e/fgholotop help &4aby uzyskac pomoc." else if arg-1 is "refresh": if size of {fgholotop::player-tops::*} > 0: if {@amount-pl} < 1: set {_am-p} to 1 else: set {_am-p} to {@amount-pl} set {_top-p} to "{@title-pl}" loop {_am-p} times: set {_ln} to loop-number set {_p} to "$NULL" set {_p} to player in position {_ln} if {_p} is "$NULL": if "{@null-pl}" is not "{NOTHING}": set {_top-p} to "%{_top-p}%;{@null-pl}" replace all "{POSITION}" in {_top-p} with "%loop-number%" else: set {_top-p} to "%{_top-p}%;{@format-pl}" replace all "{PLAYER}" in {_top-p} with "%{_p}%" replace all "{POSITION}" in {_top-p} with "%loop-number%" replace all "{POINTS}" in {_top-p} with "%{_p} points%" if {_p} guild is set: replace all "{GUILD}" in {_top-p} with "%{_p} guild%" else: replace all "{GUILD}" in {_top-p} with "N/A" loop {fgholotop::player-tops::*}: edit holo object "fgholotop-pl-%loop-index%" to {_top-p} if command executor is console: stop send "{@tag} &2Odswiezono Holo-Topki gildii i graczy!" else if arg-1 is "help": send "{@tag} &2Pomoc dotyczaca komend:" send "&6/fgholo [player/guild] place &7- &2Tworzy topke graczy/gildii w hologramach" send "&6/fgholo [player/guild] delete [ID] &7- &2Usuwa topke graczy/gildii w hologramach po podanym ID" send "&6/fgholo [player/guild] list &7- &2Wyswietla liste topek graczy/gildii w hologramach wraz z ich koordynatami i ID" send "&6/fgholo refresh &7- &2Odswieza topki gildii i graczy, konsola nie otrzymuje odpowiedzi" send "&6/fgholo author &7- &2Wyswietla informacje o autorze skryptu" send "&6/fgholo help &7- &2Wyswietla informacje dotyczace komend skryptu" else if arg-1 is "author": send "{@tag} &aAutorem skryptu na topki w hologramach jest &eLloydPL" else: send "{@tag} &4Niepoprawny argument! Wpisz &e/fgholo help &4aby uzyskac pomoc." on skript load: loop {fgholotop::player-tops::*}: create holo object "" with id "fgholotop-pl-%loop-value%" at {fgholotop::player-tops::%loop-index%::loc} loop {fgholotop::guild-tops::*}: create holo object "" with id "fgholotop-gu-%loop-value%" at {fgholotop::guild-tops::%loop-index%::loc} execute console command "fgholo refresh" every {@refresh-time} seconds: execute console command "fgholo refresh"