Guest User

ZabijGo

a guest
Oct 19th, 2014
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.53 KB | None | 0 0
  1. variables:
  2.     {polowana.%player%} = false
  3.     {kasa.%player%} = 0
  4.     {wyznaczassi.%player%} = false
  5. command /hitman [<text>] [<text>]:
  6.     trigger:
  7.         if arg 1 is not set:
  8.             send "&c/hitman <cena> <gracz>"
  9.         if arg 1 is set:
  10.             if arg 2 is set:
  11.                 if arg 1 contains "-" or ".":
  12.                     send "&cNawet nie proboj"
  13.                 else:
  14.                     set {_cena} to arg 1 parsed as number
  15.                     set {_gracz} to arg 2 parsed as player
  16.                     set {nagroda.za.%{_gracz}%} to {_cena}
  17.                     if {_cena} is not number:
  18.                         send "&c%arg 1% nie jest liczba!"
  19.                     else:
  20.                         if {wyznaczassi.%player%} is true:
  21.                             send "&cWyznaczyles juz nagrode!"
  22.                         else:
  23.                             if {_gracz} is online:
  24.                                 if {kasa.%player%} is greater than or equal to {_cena}:
  25.                                     broadcast "&7Gracz &c%player% &7wyznaczyl nagrode za glowe gracza &c%{_gracz}%&7! Nagroda: &c%{_cena}%$"
  26.                                     set {polowana.%{_gracz}%} to true
  27.                                     set {wyznacza.nazwa.%{_gracz}%} to "%player%"
  28.                                     set {wyznaczassi.%player%} to true
  29.                                 else:
  30.                                     send "&cNawet nie masz tyle kasy ;-;"
  31.                             else:
  32.                                 send "&cGracz musi byc online"
  33. command /money:
  34.     trigger:
  35.         send "&7Twoje pieniadze: &c%{kasa.%player%}%$"
  36. on join:
  37.     if {kaskastart.%player%} is not set:
  38.         add 500 to {kasa.%player%} #TUTAJ ZMIEN JEZELI CHCESZ ABY PO WEJSCIU NA SERWER (PIERWSZY RAZ) DOSTAWALO SIE KASE
  39.         set {kaskastart.%player%} to "ZDOBYL KASE"
  40. on death:
  41.     victim is a player
  42.     attacker is a player
  43.     if {polowana.%victim%} is true:
  44.         broadcast "&c%attacker% &7zabil &c%victim% &7z nagroda! Otrzymuje %{nagroda.za.%victim%}%$"
  45.         add {nagroda.za.%victim%} to {kasa.%attacker%}
  46.         set {wyznaczassi.%{wyznacza.nazwa.%victim%}%} to false
  47.         set {polowana.%victim%} to false
  48.         remove {nagroda.za.%victim%} from {kasa.%victim%}
  49.         clear {wyznacza.nazwa.%victim%}
  50.         clear {nagroda.za.%victim%}
  51.  
  52. #Komenda DODATKOWA, ktora daje kase z konsoli#
  53. command /dukase <player> <number>:
  54.     executable by: console
  55.     trigger:
  56.         set {kasa.%arg 1%} to arg 2
  57. #Komenda DODAKTOWA, ktora daje kase z konsoli#
  58. command /pay [<text>] [<text>]:
  59.     trigger:
  60.         if arg 1 is not set:
  61.             send "&c/pay <gracz> <hajs>"
  62.         if arg 1 is set:
  63.             if arg 2 is set:
  64.                 if arg 2 contains "-" or ".":
  65.                     send "&cNie ma!"
  66.                 else:
  67.                     set {_a1} to arg 1 parsed as player
  68.                     set {_a2} to arg 2 parsed as number
  69.                     if {kasa.%player%} is greater than or equal to {_a2}:
  70.                         broadcast "&7Przelano &c%{_a2}% &7kasy dla &c%{_a1}%"
  71.                         remove {_a2} from {kasa.%player%}
  72.                         add {_a2} to {kasa.%{_a1}%}
  73.                     else:
  74.                         send "&cNie masz tyle hajsu"
Advertisement
Add Comment
Please, Sign In to add comment