MikolajGra

XRelog 1.0 - Skript by MikolajGra JEDYNY OFICJALNY DOWNLOAD

Mar 23rd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.79 KB | None | 0 0
  1. #XRELOG - Skript by MikolajGra
  2. variables:
  3. {walka.%player%} = false
  4. {tag} = &2[&4X&cRelog&2]
  5. {ban.%player%} = false
  6. {xrelog.tag.uzycie.%player%} = false
  7. options:
  8. wersja: 1.0
  9. czas: 15 #Czas walki W SEKUNDACH!
  10. czasbana: 10 #Czas bana W MINUTACH!
  11. on damage of a player:
  12. if {walka.%victim%} is false:
  13. victim is a player:
  14. attacker is a player:
  15. set {walka.%victim%} to true
  16. send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to victim
  17. wait {@czas} seconds
  18. if {walka.%victim%} is true:
  19. send "%{tag}% &aJuz nie jestes w walce" to victim
  20. set {walka.%victim%} to false
  21. if {walka.%attacker%} is false:
  22. attacker is a player:
  23. victim is a player:
  24. set {walka.%attacker%} to true
  25. send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie!" to attacker
  26. wait {@czas} seconds
  27. if {walka.%attacker%} is true:
  28. send "%{tag}% &aJuz nie jestes w walce" to attacker
  29. set {walka.%attacker%} to false
  30. on quit:
  31. if {walka.%player%} is true:
  32. clear player's inventory
  33. set {ban.%player%} to true
  34. wait {@czasbana} minutes
  35. set {ban.%player%} to false
  36. command /xrelog [<text>] [<text>] [<text>]:
  37. aliases: xr
  38. trigger:
  39. if argument 1 is "przestan":
  40. if player has permission "xrelog.przestan.ty" or "xrelog.*":
  41. if {walka.%player%} is true:
  42. set {walka.%player%} to false
  43. send "%{tag}% &aJuz nie jestes w walce - uzyles komende."
  44. else:
  45. send "%{tag}% &4Blad: &cNie jestes w walce!" to player
  46. else:
  47. send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  48. if argument 1 is "zacznij":
  49. if player has permission "xrelog.zacznij.ty" or "xrelog.*":
  50. if {walka.%player%} is false:
  51. set {walka.%player%} to true
  52. send "%{tag}% &cJestes w walce! &4Nie wylogowywuj sie! - uzyles komendy."
  53. wait {@czas} seconds
  54. if {walka.%player%} is true:
  55. send "%{tag}% &aJuz nie jestes w walce - po wczesniejszym uzyciu komendy" to player
  56. set {walka.%player%} to false
  57. else:
  58. send "%{tag}% &4Blad: &cJestes w walce!" to player
  59. if argument 1 is "tag":
  60. set {xrelog.tag.uzycie.%player%} to true
  61. if argument 2 is "zmien":
  62. if argument 3 is set:
  63. if player has permission "xrelog.tag.zmien":
  64. set {tag} to colored arg 3
  65. send "%{tag}% &aZmieniono tag!" to player
  66. else:
  67. send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  68. else:
  69. send "%{tag}% &4Blad: &cWpisz nowa nazwe tagu!" to player
  70. if argument 2 is "przywroc":
  71. if argument 3 is not set:
  72. if player has permission "xrelog.tag.przywroc" or "xrelog.*":
  73. set {tag} to "&2[&4X&cRelog&2]"
  74. send "%{tag}% &aPrzywrocono tag!" to player
  75. else:
  76. send "%{tag}% &4Blad: &cNie masz dostepu do tej komendy."
  77. else:
  78. if player has permission "xrelog.tag.przywroc" or "xrelog.tag.zmien" or "xrelog.*":
  79. send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przywroc, zmien)" to player
  80. else:
  81. if player has permission "xrelog.przestan.ty" or "xrelog.zacznij.ty" or "xrelog.tag.zmien" or "xrelog.tag.przywroc" or "xrelog.*":
  82. if {xrelog.tag.uzycie.%player%} is true:
  83. send "%{tag}% &4Blad: &cBrakuje kilku argumentow! (przestan, zacznij, tag)" to player
  84. set {xrelog.tag.uzycie.%player%} to false
  85. on join:
  86. send "&2Serwer uruchomiony jest ze skryptem &4X&cRelog by &aMikolajGra"
  87. if {ban.%player%} is true:
  88. kick the player due to "%{tag}% &4Zostales zbanowany na &e{@czasbana} minut&4, poniewaz wylogowales sie podczas walki!"
  89. on skript start:
  90. send "&2&4X&cRelog&2 - skript by &aMikolajGra&2 wersja: {@wersja}" to the console
  91. on command:
  92. if {walka.%player%} is true:
  93. if player has permission "xrelog.walka.komenda" or "xrelog.*":
  94. stop
  95. else:
  96. cancel event
  97. send "%{tag}% &4Nie mozesz uzywac tej komendy podczas walki!" to player
Add Comment
Please, Sign In to add comment