Guest User

Untitled

a guest
Dec 14th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.74 KB | None | 0 0
  1. options:
  2. tag: &7[&cT&f&lN&cT&7] # Prefix ktory bedzie przed kazdym tekstem.
  3. perm: &cNie masz uprawnien, do tej komendy! # Tekst ktory bedzie wyswietlany jak grasz nie ma permission do komendy.
  4. koniec: &cSpadles, &7koniec gry! # Tekst który bedzie wyswietlany gdy wypadniesz z areny.
  5. dolaczyles: &aDolaczyles do ARENY! # Tekst który bedzie wyswietlany jak ktos bedzie dolaczal do gry.
  6. nazwapliku: tntrun # WAZNE aby wpisać nazwe pliku na ktorym jest ten skrypt.
  7.  
  8. command /tntrune [<text>] [<text>]:
  9. trigger:
  10. if arg 1 is "setarena":
  11. if player has permission "blabla.setarena" or "blabla.*":
  12. if arg 2 is set:
  13. if {tnt.tnt.%arg 2%.tnt} is true:
  14. set {tnt.tnt.%arg 2%.spawn} to location of player
  15. set {tnt.tnt.%arg 2%.niewiem} to true
  16. send "{@tag} &aUstawiono spawn dla areny &7%arg 2%!"
  17. stop
  18. else:
  19. send "{@tag} &cNie ma areny z taka nazwa!"
  20. stop
  21. else:
  22. send "{@tag} &cPodaj nazwe areny!"
  23. stop
  24. else:
  25. send "{@perm}"
  26. stop
  27. if arg 1 is "dolacz":
  28. if arg 2 is set:
  29. if player has permission "blabla.dolacz" or "blabla.*" or "blabla.gracz":
  30. if {tnt.tnt.%player%.tnt} is true:
  31. if {tnt.tnt.%player%.niewiem} is true:
  32. set {start.%player%.tntrun} to true
  33. set {koniec.%player%.tntrun} to true
  34. teleport player to {tnt.tnt.%arg 2%.spawn}
  35. send "dolaczyles"
  36. else:
  37. send "{@perm}"
  38. stop
  39. if arg 1 is "stworz":
  40. if player has permission "blabla.stworz" or "blabla.*":
  41. if arg 2 is set:
  42. if {tnt.%arg 2%.tnt} is true:
  43. send "{@tag} &cIstnieje juz arena o takiej nazwie!"
  44. stop
  45. else:
  46. set {tnt.tnt.%arg 2%.tnt} to true
  47. set {tnt.tnt.%arg 2%.nazwa} to "%arg 2%"
  48. add "%arg 2%" to {tnt.list.list::*}
  49. add 1 to {tnt.list-number}
  50. send "{@tag} &aPomyslnie stworzono arene o nazwie &7%arg 2%"
  51. stop
  52. else:
  53. send "{@tag} &cPodaj nazwe areny!"
  54. stop
  55. else:
  56. send "{@perm}"
  57. stop
Advertisement
Add Comment
Please, Sign In to add comment