moeycvbn12

Untitled

Dec 18th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # Do not edit the text!
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. function StatsCommand(s: player, p: player):
  130. if "%{_s}%" contains "%{_p}%":
  131. send "&7You'r Stats:" to {_s}
  132. else:
  133. send "&6%{_p}%'s &7Stats:" to {_s}
  134. replace all "<none>" with "0" in {Kills::%{_p}%}
  135. replace all "<none>" with "0" in {Deaths::%{_p%}
  136. send "&eKills&8: &7%{Kills::%{_p}%}%" to {_s}
  137. send "&eDeaths&8: &7%{Deaths::%{_p}%}%" to {_s}
  138. every 3 seconds:
  139. loop all players:
  140. replace all "<none>" with "0" in {Kills::%loop-player%}
  141. replace all "<none>" with "0" in {Deaths::%loop-player%}
  142. create hologram "&7You'r Stats;&6Kills&8: &7%{Kills::%loop-player%}%;&6Deaths&8: &7%{Deaths::%loop-player%}%" at {Stats.Hologram.loc} for 3 seconds
  143. command /setstatsholo:
  144. trigger:
  145. if player has permission "stats.setholo":
  146. set {StatsHologram.loc} to location of player
  147. send "&cHolo&fStats &8&m--&r &7You have set the hologram!"
  148. stop
  149. else:
  150. send "&cHolo&fStats &8&m--&r &cYou don't have permission to do this!"
  151. stop
  152. on death:
  153. add 1 to {Kills::%attacker%}
  154. add 1 to {Deaths::%victim%}
Add Comment
Please, Sign In to add comment