Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=======================#
- # StatTrak #
- # v0.1 BETA #
- # inspirejszyn by valve #
- # coded by fajer #
- #=======================#
- options:
- koszt: 32 gold block
- kosztWyswietlany: 32 bloki zlota!
- on death of player:
- attacker is a player
- set {_opis::*} to lore of attacker's tool split at "||"
- if {_opis::1} is "&3Przedmiot posiada system StatTrak":
- set {_::*} to {_opis::2} split at ":"
- set {_zabojstwa} to {_::2} parsed as number
- add 1 to {_zabojstwa}
- set 2nd line of lore of attacker's tool to "&6StatTrak:%{_zabojstwa}%"
- send "Dodano &a1 &fzabojstwo do broni z systemem StatTrak" to attacker
- on mine of stone:
- set {_opis::*} to lore of player's tool split at "||"
- if {_opis::1} is "&3Przedmiot posiada system StatTrak":
- set {_::*} to {_opis::2} split at ":"
- set {_zabojstwa} to {_::2} parsed as number
- add 1 to {_zabojstwa}
- set 2nd line of lore of player's tool to "&6StatTrak:%{_zabojstwa}%"
- command /stadmin [<text>] [<text>]:
- permission: st.admin
- permission message: &cBrak uprawnien.
- trigger:
- if arg 1 is "daj":
- if arg 2 is not set:
- if player's tool is any sword or any pickaxe:
- set 1st line of lore of player's tool to "&3Przedmiot posiada system StatTrak"
- set 2nd line of lore of player's tool to "&6StatTrak:0"
- send "&cUlepszono item" to player
- else:
- set {_p} to arg 2 parsed as player
- if {_p}'s tool is any sword or any pickaxe:
- set 1st line of lore of {_p}'s tool to "&3Przedmiot posiada system StatTrak"
- set 2nd line of lore of {_p}'s tool to "&6StatTrak:0"
- send "&cUlepszono item" to player
- send "&cTwoj item zostal ulepszony, ma teraz system StatTrak"
- command /stattrak [<text>]:
- permission: st.kup
- permission message: &cBrak uprawnien.
- trigger:
- if arg 1 is not "kup":
- send " &c&l>>-----x &f Informacje o &a&lStattraku! &c&lx-----<< "
- send "&7- &7StatTrak to system ktory liczy zabojstwa, wykopane bloki"
- send "&7- &7licznik jest unikalny dla kazdego przedmiotu"
- send " "
- send "&7- &fCena: &7{@kosztWyswietlany}"
- send "&7- &7wpisz &f/stattrak kup &7aby kupic"
- send " &c&l>>-----x &f Informacje o &a&lStattraku! &c&lx-----<< "
- stop
- if arg 1 is not set:
- send " &c&l>>-----x &f Informacje o &a&lStattraku! &c&lx-----<< "
- send "&7- &7StatTrak to system ktory liczy zabojstwa, wykopane bloki"
- send "&7- &7licznik jest unikalny dla kazdego przedmiotu"
- send " "
- send "&7- &fCena: &7{@kosztWyswietlany}"
- send "&7- &7wpisz &f/stattrak kup &7aby kupic"
- send " &c&l>>-----x &f Informacje o &a&lStattraku! &c&lx-----<< "
- stop
- if arg 1 is "kup":
- if player's tool is any sword or any pickaxe:
- if player have {@koszt}:
- set 1st line of lore of player's tool to "&3Przedmiot posiada system StatTrak"
- set 2nd line of lore of player's tool to "&6StatTrak:0"
- send "&2Twoj item zostal ulepszony, ma teraz system &a&lStatTrak"
- remove {@koszt} from player's inventory
- stop
- send "&cNie masz wymaganych przedmiotow!" to player
- stop
- send "&cNie mozna ulepszyc tego przedmiotu!"
Advertisement
Add Comment
Please, Sign In to add comment