Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #--------------------------------------#
- # 205nd #
- # Skript Tutorial #
- # 3. díl #
- # #
- # Vytvořeno pro itnetwork.cz #
- # www.205nd.tk #
- #--------------------------------------#
- command /sethome:
- trigger:
- set {domov.%player%} to location of player
- send "&aDomov nastaven!" to player
- command /home:
- trigger:
- if {domov.%player%} is set: #Jestliže je proměnná domova hráče nastavena, tak se vykoná kód pod tím
- teleport player to {domov.%player%}
- send "&aByl jsi teleportovan do sveho domova!" to player
- else: #Pokud podmínka není splněná, vykoná se toto:
- send "&cNemas nastaven domov! Nastav si ho pomoci /sethome!"
- command /delhome:
- trigger:
- delete {domov.%player%} #Smažeme proměnnou
- send "&aDomov smazan!" to player
- command /setrespawnpoint:
- trigger:
- if player has permission "plugin.setrespawnpoint": #Jesliže má hráč permissi "plugin.setrespawnpoint"...
- set {respawnpoint} to location of player
- send "&aRespawn point nastaven!" to player
- else:
- send "&cNemas prava na tento prikaz!"
- on respawn: #Event - při respawnu hráče
- if {respawnpoint} is set:
- teleport player to {respawnpoint} #Teleportuje hráče na respawn point
- command /teleport <offline player>:
- trigger:
- if player has permission "plugin.teleport":
- if arg-1 is online: #Jestliže uvedený v argumentu 1 je online...
- teleport player to arg-1 #Teleportace hráče k hráči uvedenému v argumentu 1
- send "&aTeleportuji..." to player
- send "&b%player%&a se k tobe teleportoval!" to arg-1 #Odešleme zprávu argumentu 1
- else:
- send "&cHrac musi byt online!" to player
- else:
- send "&cNemas prava!" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement