#skrypt by rysiek21 #versja skryptu 1.0 #nazwa skryptu [SI] #Zezwalam #Zmienianie wiadomości i permisji #Zmienianie i dodawanie własnych kitów #Zabraniam #Podszywanie się pod autora #Zarabianie na skrypcie #Udostępnianie na innych forum #Usuwanie podpisu autora command /SkyIsland [] []: permission: si.adm permission message: &cNie masz uprawnień! aliases: si trigger: if arg 1 is not set: send "&6*****************************************************" send "&6 /SkyIsland ustaw &4red &6- ustawia spawn drużyny czerwonej" send "&6 /SkyIsland ustaw &1blue &6- ustawia spawn drużyny niebieskiej" send "&6 /SkyIsland ustaw &5lobby &6- ustawia lobby SkyIsland" send "&6 /SkyIsland reload &6- &cRestartuje Skrypt" send "&6 /dolacz - dołącza do gry" send "&6 /leave - &cWychodzi z gry" send "&6*****************************************************" if arg 1 is "ustaw": if arg 2 is "red": set {si.red} to location of player send "&2Spawn &4czerwonych &2Ustawiony" if arg 2 is "blue": set {si.blue} to location of player send "&2Spawn &1Niebieskich &2Ustawiony" if arg 2 is "lobby": set {si.lobby} to location of player send "&2Lobby Ustawiono" stop if arg 1 is "reload": execute console command "sk reload %script%" send "&2 [SkyIsland] &2Przeladowano Skrypt Pomyślnie" on death of player: set death message to "" command /dolacz: trigger: if {si.dlobby} is true: teleport player to {si.lobby} execute console command "clear %player%" wait 1 tick send "&6Dołączyłeś do &cgry" add 1 clock named "&5Drużyna" to player's inventory stop on rightclick with clock: if player's tool is clock named "&5Drużyna": open chest with 1 rows named "&2Team" to player wait 1 tick format slot 0 of player with 1 of blue wool named "&1Niebiescy" to close then run "sudo %player% blue" format slot 8 of player with 1 of red wool named "&4Czerwoni" to close then run "sudo %player% red" command /blue: trigger: if {si.dlobby} is true: teleport player to {si.blue} execute console command "clear %player%" wait 1 tick set {si.dred} to false set {si.dblue} to true open chest with 1 rows named "&1Kit" to player wait 1 tick format slot 0 of player with 1 of black wool named "&7Wojownik" to close then run "sudo %player% k w" format slot 1 of player with 1 of blue wool named "&8Budowniczy" to close then run "sudo %player% k b" format slot 2 of player with 1 of brown wool named "&cDrwal" to close then run "sudo %player% k d" set {si.dlobby} to false stop command /red: trigger: if {si.dlobby} is true: teleport player to {si.red} execute console command "clear %player%" wait 1 tick set {si.dred} to true set {si.dblue} to false open chest with 1 rows named "&1Kit" to player wait 1 tick format slot 0 of player with 1 of black wool named "&7Wojownik" to close then run "sudo %player% k w" format slot 1 of player with 1 of blue wool named "&8Budowniczy" to close then run "sudo %player% k b" format slot 2 of player with 1 of brown wool named "&cDrwal" to close then run "sudo %player% k d" set {si.dlobby} to false stop on join: set {si.dlobby} to true set {si.dblue} to false set {si.dred} to false set {si.kit} to true execute player command "spawn" on damage: if attacker is a player: if victim is a player: if {si.dblue} is true: if {si.dblue} is true: cancel event stop if {si.dred} is true: if {si.dred} is true: cancel event stop on respawn: if {si.dblue} is true: teleport player to {si.blue} on respawn: if {si.dred} is true: teleport player to {si.red} command /leave: trigger: set {si.dlobby} to true set {si.dblue} to false set {si.dred} to false set {si.kit} to true execute player command "spawn" send "&cWyszedłeś z gry" execute console command "clear %player%" command /k []: trigger: if arg 1 is "w": if {si.kit} is true: add 1 iron sword to player's inventory set {si.kit} to false stop if arg 1 is "b": if {si.kit} is true: add 32 stone to player's inventory set {si.kit} to false stop if arg 1 is "d": if {si.kit} is true: add 64 log to player's inventory add 1 stone axe to player's inventory set {si.kit} to false stop