Facebook
From Andżej, 8 Years ago, written in JavaScript.
Embed
Download Paste or View Raw
Hits: 335
  1.  
  2. Variables:
  3.         {punkty.%player%} = 0
  4.                 {lvl.%player%} = 1
  5.  
  6. command /resetpkt [<player>]:
  7.                 permissions: punkty.reset
  8.         trigger:
  9.                 if arg 1 is set:
  10.                         set {punkty.%player%} to 0
  11.                         set {lvl.%player%} to 1
  12. command /punkty:
  13.         trigger:
  14.                         send "&9&l= = = = = = =&a&l (&9Mosura&bLvl&a&l)&9&l = = = = = = ="
  15.                         send " &dPosiadasz &e[&6%{punkty.%player%}%&e] punktow "
  16.                         send " &dPosiadasz &9[&1%{lvl.%player%}%&9] Lvl "
  17.                         send "&9&l= = = = = = =&a&l (&9Mosura&bLvl&a&l)&9&l = = = = = = ="
  18. on death of player:
  19.         attacker is a player
  20.         victim is a player:
  21.                 if {punkty.%player%} is greater than 0:
  22.             set {lvl.%player%} to 1
  23.         if {punkty.%player%} is greater than 20:
  24.             set {lvl.%player%} to 2
  25.         if {punkty.%player%} is greater than 40:
  26.             set {lvl.%player%} to 3
  27.         if {punkty.%player%} is greater than 60:
  28.             set {lvl.%player%} to 4
  29.         if {punkty.%player%} is greater than 80:
  30.             set {lvl.%player%} to 5
  31.         if {punkty.%player%} is greater than 100:
  32.             set {lvl.%player%} to 6
  33.         if {punkty.%player%} is greater than 120:
  34.             set {lvl.%player%} to 7
  35.         if {punkty.%player%} is greater than 140:
  36.             set {lvl.%player%} to 8
  37.         if {punkty.%player%} is greater than 160:
  38.             set {lvl.%player%} to 9
  39.         if {punkty.%player%} is greater than 180:
  40.             set {lvl.%player%} to 10
  41.             broadcast "&a&l(&9Mosura&bLvl&a&l)&6 Gracz &d%player% &6Zdobył &c10 Lvl &6w zabijaniu! Gratulujemy!"
  42.         if {punkty.%player%} is greater than 200:
  43.             set {lvl.%player%} to 11
  44.         if {punkty.%player%} is greater than 220:
  45.             set {lvl.%player%} to 12
  46.         if {punkty.%player%} is greater than 240:
  47.             set {lvl.%player%} to 13
  48.         if {punkty.%player%} is greater than 260:
  49.             set {lvl.%player%} to 13
  50.         if {punkty.%player%} is greater than 280:
  51.             set {lvl.%player%} to 14
  52.         if {punkty.%player%} is greater than 300:
  53.             set {lvl.%player%} to 15
  54.         if {punkty.%player%} is greater than 320:
  55.             set {lvl.%player%} to 16
  56.         if {punkty.%player%} is greater than 340:
  57.             set {lvl.%player%} to 17
  58.         if {punkty.%player%} is greater than 360:
  59.             set {lvl.%player%} to 18
  60.         if {punkty.%player%} is greater than 380:
  61.             set {lvl.%player%} to 19
  62.         if {punkty.%player%} is greater than 400:
  63.             set {lvl.%player%} to 20
  64.         if {punkty.%player%} is greater than 420:
  65.             set {lvl.%player%} to 21
  66.         if {punkty.%player%} is greater than 440:
  67.             set {lvl.%player%} to 22
  68.         if {punkty.%player%} is greater than 460:
  69.             set {lvl.%player%} to 23
  70.         if {punkty.%player%} is greater than 480:
  71.             set {lvl.%player%} to 24
  72.         if {punkty.%player%} is greater than 1700:
  73.             set {lvl.%player%} to 25
  74.         if {punkty.%player%} is greater than 1800:
  75.             set {lvl.%player%} to 26
  76.         if {punkty.%player%} is greater than 1900:
  77.             set {lvl.%player%} to 27
  78.         if {punkty.%player%} is greater than 2000:
  79.             set {lvl.%player%} to 28
  80.         if {punkty.%player%} is greater than 2100:
  81.             set {lvl.%player%} to 29
  82.         if {punkty.%player%} is greater than 2200:
  83.             set {lvl.%player%} to 30
  84.             broadcast "&a&l(&9Mosura&bLvl&a&l)&6 Gracz &d%player% &6Zdobył &c30 Lvl &6w zabijaniu! Gratulujemy!"
  85.         if {punkty.%player%} is greater than 2300:
  86.             set {lvl.%player%} to 31
  87.         if {punkty.%player%} is greater than 2400:
  88.             set {lvl.%player%} to 32
  89.         if {punkty.%player%} is greater than 2500:
  90.             set {lvl.%player%} to 33
  91.         if {punkty.%player%} is greater than 2600:
  92.             set {lvl.%player%} to 34
  93.         if {punkty.%player%} is greater than 2700:
  94.             set {lvl.%player%} to 35
  95.         if {punkty.%player%} is greater than 2800:
  96.             set {lvl.%player%} to 36
  97.         if {punkty.%player%} is greater than 2900:
  98.             set {lvl.%player%} to 37
  99.         if {punkty.%player%} is greater than 3000:
  100.             set {lvl.%player%} to 38
  101.         if {punkty.%player%} is greater than 3100:
  102.             set {lvl.%player%} to 39
  103.         if {punkty.%player%} is greater than 3200:
  104.             set {lvl.%player%} to 40
  105.             broadcast "&a&l(&9Mosura&bLvl&a&l)&6 Gracz &d%player% &6Zdobył &c40 Lvl &6w zabijaniu! Gratulujemy!"
  106.         if {punkty.%player%} is greater than 3300:
  107.             set {lvl.%player%} to 41
  108.         if {punkty.%player%} is greater than 3400:
  109.             set {lvl.%player%} to 42
  110.         if {punkty.%player%} is greater than 3500:
  111.             set {lvl.%player%} to 43
  112.         if {punkty.%player%} is greater than 3600:
  113.                         set {lvl.%player%} to 44
  114.         if {punkty.%player%} is greater than 3700:
  115.             set {lvl.%player%} to 45
  116.         if {punkty.%player%} is greater than 3800:
  117.             set {lvl.%player%} to 46
  118.         if {punkty.%player%} is greater than 3900:
  119.             set {lvl.%player%} to 47
  120.         if {punkty.%player%} is greater than 4000:
  121.             set {lvl.%player%} to 48
  122.         if {punkty.%player%} is greater than 4100:
  123.             set {lvl.%player%} to 49
  124.                 if {punkty.%player%} is greater than 4500:
  125.             set {lvl.%player%} to 50
  126.  
  127. on chat:
  128.         if {lvl.%player%} is true:
  129.                 set player's display name to "&9[&1%{lvl.%player%}% Lvl&9]&r %name ofplayer%&r %message%"
  130.                 cancel event