Guest User

Killstreak 1.0

a guest
Oct 21st, 2013
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.37 KB | None | 0 0
  1. #|--------------------------------------------------|#
  2. #|Skrypt jest chroniony prawami autorskimi          |#
  3. #|Autorem skryptu jest xCrysiSx                     |#
  4. #|Wersja skryptu 1.0                                |#
  5. #|Zakaz kopiowania, podszywania sie pod autora!     |#
  6. #|Zakaz zmieniania nazwy autora skryptu!            |#
  7. #|--------------------------------------------------|#
  8. options:
  9. #=========================# Ustawienia dla gracza #=========================#
  10.     skname: Killstreak #Nazwa skryptu
  11.     wersja: 1.0 #Wersja skryptu (linijka dla autora)
  12.     item: 264 #Item 1 wypadajacy przy killstreaku
  13.     procent: 50 #Procent na drop 1 itemu przy killstreaku
  14.     item2: 322:1 #Item 2 wypadajacy przy killstreaku
  15.     procent2: 10 #Procent na drop 2 itemu przy killstreaku
  16. #=========================# Koniec ustawień dla gracza #=========================#
  17.  
  18. #=========================# Początek kodu skryptu, jeżeli się nie znasz nie ruszaj! #=========================#
  19. variables:
  20.     {killstreak.%player%} = false
  21.     {kill.%player%} = 0
  22. on damage of player:
  23.     if {killstreak.%attacker%} is false:
  24.         set {killstreak.%attacker%} to true
  25. on death:
  26.     set {kill.%player%} to 0
  27.     set {killstreak.%player%} to true
  28. on death:
  29.     attacker is player
  30.     victim is player
  31.     send "&eStraciles swojego killstreaka!" to victim
  32.     set {kill.%victim%} to 0
  33.     if {killstreak.%player%} is true:
  34.         add 1 to {kill.%attacker%}
  35.         send "&eRozpoczales swoja serie zabojstw!" to attacker
  36.         if {kill.%attacker%} is 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 10 or 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20 or 21 or 22 or 23 or 24 or 25 or 26 or 27 or 28 or 29:
  37.             broadcast "&eGracz &7%attacker% &eosiagnal &7x%{kill.%attacker%}% &eserie zabojstw!"
  38.             chance of {@procent}%:
  39.                 give 1 {@item} to player
  40.                 send "&aMiales farta i przy twoim %{kill.%player%}% killstraku wypadl {@item} z procentem {@procent}!"
  41.             chance of {procent2}%:
  42.                 give 1 {@item2} to player
  43.                 send "&aMiales farta i przy twoim %{kill.%player%}% killstraku wypadl {@item2} z procentem {@procent2}!"
  44.         if {kill.%attacker%} is 30:
  45.             broadcast "&eGracz &7%attacker% &eosiagnal &7x%{kill.%attacker%}%(maksymalna) &eserie zabojstw!"
  46.             set {killstreak.%attacker%} to false
  47.     if {killstreak.%attacker%} is false:
  48.         send "&cOsiagnales maksymalna serie zabojstw!"
  49. command /killstreak [<text>]:
  50.     trigger:
  51.         if arg 1 is not set:
  52.             send "&3Dostepne komendy skryptu:"
  53.             send "&a/killstreak sprawdz &8- &7Pokazuje twoja liczbe killstreakow"
  54.             send "&a/killstreak przeladuj &8- &7Przeladowuje skrypt"
  55.             send "&a/killstreak autor &8- &7Informacje o autorze skryptu"
  56.         if arg 1 is "sprawdz":
  57.             send "&eTwoje killstreaki: &7%{kill.%player%}%"
  58.         if arg 1 is "autor":
  59.             send "&6Nazwa skryptu: &7{@skname}"
  60.             send "&6Autor skryptu: &7xCrysiSx"
  61.             send "&6Wersja skryptu: &7{@wersja}"
  62.             stop
  63.         if arg 1 is "przeladuj":
  64.             if has permission "killstreak.przeladuj":
  65.                 send "&cTrwa przeladowywanie skryptu..."
  66.                 execute console command "skript reload {@skname}"
  67.                 wait 2 second
  68.                 send "&cSkrypt zostal przeladowany!"
  69.                 stop
  70. on logout:
  71.     set {kill.%player%} to 0
  72.     set {killstreak.%player%} to true
  73. on quit:
  74.     set {kill.%player%} to 0
  75.     set {killstreak.%player%} to true
  76. on join:
  77.     set {killstreak.%player%} to true
  78. on first join:
  79.     set {killstreak.%player%} to true
  80. #=========================# Koniec kodu skryptu #=========================#
Advertisement
Add Comment
Please, Sign In to add comment