command /odrodzenie []: trigger: if {duch.%player%} is true: if arg is "indianin": set {indianin.%player%} to true set {duch.%player%} to false execute console command "pex user %name of player% group set Indianin" send "&3[Rasy]&6Zostales odrodzony jaki Indianin!" loop all players: if {indianin.%loop-player%} is true: send "&3[Rasy]&6&nGracz &2%player% &6odrodzil sie Indianinem!" to loop-player stop if arg 1 is "kowboj": set {kowboj.%player%} to true set {duch.%player%} to false send "&&3[Rasy]6Zostales odrodzony jako Kowboj!" execute console command "pex user %name of player% group set Kowboj" loop all players: if {kowboj.%loop-player%} is true: send "&3[Rasy]&6&nGracz &2%player% &6odrodzil sie Kowbojem!" to loop-player stop if arg 1 is not set: if {duch.%player%} is true: send "&6Możesz wybrac jedna z dwoch ras, kowboja i indinina" send "&6Wpisz /odrodzenie , pamietaj! Rase mozesz wybrac tylko raz!" else: stop on death: if {kowboj.%attacker%} is true: if {kowboj.%victim%} is true: if {poszukiwany.%attacker%} is true: if {poszukiwany.%victim%} is true: broadcast "test4" give 10 gold block to attacker set {poszukiwany.%victim%} to false set {wiezien.%victim%} to true teleport victim to {wiezienie} if {poszukiwany.%attacker%} is false: if {poszukiwany.%victim%} is false: set {poszukiwany.%attacker%} to true add attacker to {poszukiwani::*} if {poszukiwany.%victim%} is true: add 10 gold block to attacker teleport victim to {wiezienie} else: stop else: stop