Anteks12345

Loteria dla hejterskiego

Mar 1st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.34 KB | None | 0 0
  1. on rightclick with paper:
  2.     if name of player's tool is "&3&lLoteria":
  3.         delete player's tool
  4.         set {_szansa1} to "%{Loteria.szansa1}%"
  5.         set {_szansa2} to "%{Loteria.szansa2}%"
  6.         set {_szansa3} to "%{Loteria.szansa3}%"
  7.         set {_szansa4} to "%{Loteria.szansa4}%"
  8.         set {_szansa5} to "%{Loteria.szansa5}%"
  9.         set {_komenda1} to "%{Loteria.Komenda1}%"
  10.         set {_komenda2} to "%{Loteria.Komenda2}%"
  11.         set {_komenda3} to "%{Loteria.Komenda3}%"
  12.         set {_komenda4} to "%{Loteria.Komenda4}%"
  13.         set {_komenda5} to "%{Loteria.Komenda5}%"
  14.         chance of {_szansa1}:
  15.             execute console command {_komenda1}
  16.         chance of {_szansa2}:
  17.             execute console command {_komenda2}
  18.         chance of {_szansa3}:
  19.             execute console command {_komenda3}
  20.         chance of {_szansa4}:
  21.             execute console command {_komenda4}
  22.         chance of {_szansa5}:
  23.             execute console command {_komenda5}
  24. command /loteria [<integer>] [<text>] [<text>]:
  25.     trigger:
  26.         if player has permission "lotera.use":
  27.             if argument 1 is set:
  28.                 if arg 2 is not empty:
  29.                     if arg 3 is not empty:
  30.                         if arg 1 is 1 or 2 or 3 or 4 or 5:
  31.                             set {_liczba} to arg 1
  32.                             set {Loteria.szansa%{_liczba}%} to arg 2
  33.                             set {Loteria.Komenda%{_liczba}%} to arg 3
  34.                             send "&aPomyslnie ustawiles &c%{_liczba}%&a!"
  35. command /hejterowskitest:
  36.     trigger:
  37.         chance of 100:
  38.             give paper named "&3&lLoteria" to player
Advertisement
Add Comment
Please, Sign In to add comment