Guest User

Untitled

a guest
May 16th, 2015
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. #Script Tablistyml created by Edgarsz
  2.  
  3. on load:
  4. execute console command "scoreboard objectives add pkt dummy &7pkt"
  5. execute console command "scoreboard objectives setdisplay belowName pkt"
  6. send "[Szymon] Pomyslnie zaladowanie" to the console
  7. send "[Szymon] Cos tam cos tam" to the console
  8. loop all players:
  9. execute console command "scoreboard players set %loop-player% pkt 1000"
  10. on unload:
  11. execute console command "scoreboard objectives remove pkt"
  12.  
  13. method "Tablistyml::loadTablist" {}:
  14. if {tablistyml::usePemissionsToSee} is "true":
  15. set {_tab} to "Tab"
  16. loop all players:
  17. if loop-player has permission "%{tablistyml::permission:see}%":
  18. loop {tablistyml::maxplayers} times:
  19. set {_text} to colored {tablistyml::slot::%loop-number%}
  20. if {_text} doesn't contain "{NONE}":
  21. if {_text} contains "##":
  22. set {_v} to first index of "##" in {_text}
  23. set {_v1} to last index of "##" in {_text}
  24. set {_v2} to subtext of {_text} from character ({_v}) to character ({_v1})
  25. replace all "##" with "" in {_v2}
  26. replace all "##%{_v2}%##" with "%{%{_v2}%}%" in {_text}
  27. if {tablistyml::ranking} is "true":
  28. loop 20 times:
  29.  
  30.  
  31.  
  32. (...)
Advertisement
Add Comment
Please, Sign In to add comment