Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #|--------------------------------------------------|#
- #|Skrypt jest chroniony prawami autorskimi |#
- #|Autorem skryptu jest xCrysiSx |#
- #|Wersja skryptu 1.0 |#
- #|Zakaz kopiowania, podszywania sie pod autora! |#
- #|Zakaz zmieniania nazwy autora skryptu! |#
- #|--------------------------------------------------|#
- options:
- #=========================# Ustawienia dla gracza #=========================#
- skname: Killstreak #Nazwa skryptu
- wersja: 1.0 #Wersja skryptu (linijka dla autora)
- item: 264 #Item 1 wypadajacy przy killstreaku
- procent: 50 #Procent na drop 1 itemu przy killstreaku
- item2: 322:1 #Item 2 wypadajacy przy killstreaku
- procent2: 10 #Procent na drop 2 itemu przy killstreaku
- #=========================# Koniec ustawień dla gracza #=========================#
- #=========================# Początek kodu skryptu, jeżeli się nie znasz nie ruszaj! #=========================#
- variables:
- {killstreak.%player%} = false
- {kill.%player%} = 0
- on damage of player:
- if {killstreak.%attacker%} is false:
- set {killstreak.%attacker%} to true
- on death:
- set {kill.%player%} to 0
- set {killstreak.%player%} to true
- on death:
- attacker is player
- victim is player
- send "&eStraciles swojego killstreaka!" to victim
- set {kill.%victim%} to 0
- if {killstreak.%player%} is true:
- add 1 to {kill.%attacker%}
- send "&eRozpoczales swoja serie zabojstw!" to attacker
- 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:
- broadcast "&eGracz &7%attacker% &eosiagnal &7x%{kill.%attacker%}% &eserie zabojstw!"
- chance of {@procent}%:
- give 1 {@item} to player
- send "&aMiales farta i przy twoim %{kill.%player%}% killstraku wypadl {@item} z procentem {@procent}!"
- chance of {procent2}%:
- give 1 {@item2} to player
- send "&aMiales farta i przy twoim %{kill.%player%}% killstraku wypadl {@item2} z procentem {@procent2}!"
- if {kill.%attacker%} is 30:
- broadcast "&eGracz &7%attacker% &eosiagnal &7x%{kill.%attacker%}%(maksymalna) &eserie zabojstw!"
- set {killstreak.%attacker%} to false
- if {killstreak.%attacker%} is false:
- send "&cOsiagnales maksymalna serie zabojstw!"
- command /killstreak [<text>]:
- trigger:
- if arg 1 is not set:
- send "&3Dostepne komendy skryptu:"
- send "&a/killstreak sprawdz &8- &7Pokazuje twoja liczbe killstreakow"
- send "&a/killstreak przeladuj &8- &7Przeladowuje skrypt"
- send "&a/killstreak autor &8- &7Informacje o autorze skryptu"
- if arg 1 is "sprawdz":
- send "&eTwoje killstreaki: &7%{kill.%player%}%"
- if arg 1 is "autor":
- send "&6Nazwa skryptu: &7{@skname}"
- send "&6Autor skryptu: &7xCrysiSx"
- send "&6Wersja skryptu: &7{@wersja}"
- stop
- if arg 1 is "przeladuj":
- if has permission "killstreak.przeladuj":
- send "&cTrwa przeladowywanie skryptu..."
- execute console command "skript reload {@skname}"
- wait 2 second
- send "&cSkrypt zostal przeladowany!"
- stop
- on logout:
- set {kill.%player%} to 0
- set {killstreak.%player%} to true
- on quit:
- set {kill.%player%} to 0
- set {killstreak.%player%} to true
- on join:
- set {killstreak.%player%} to true
- on first join:
- set {killstreak.%player%} to true
- #=========================# Koniec kodu skryptu #=========================#
Advertisement
Add Comment
Please, Sign In to add comment