Guest User

iPVPControl

a guest
Feb 12th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. options:
  2. # Wiadomosc jak nie ma sie uprawnien
  3. msg.noperm: &cBrak Uprawnien
  4. # Czas po jakim mozesz sie lognac
  5. czas: 5 seconds
  6. # Czas bana
  7. czas.bana: 1
  8. # Maksymalna liczba relogow. Po 3 relogach dostaje sie bana
  9. liczba.relogow: 3
  10. # tag Przy wiadomosciach
  11. tag: &1[&biPVPControl&1]&f
  12. # Aliasy do komendy
  13. aliases: cb, ipc, ip, ic, pc, icontrol, pcontrol, pvpc
  14. command /combatlog [<text>] [<text>] [<text>]:
  15. aliases: {@aliases}
  16. trigger:
  17. if arg 1 is not set:
  18. send "{@tag} &1Uzyj: &b/combatlog &f<reload/relogi/usun> "
  19. stop
  20. if arg 1 is "reload" or "r":
  21. if player doesn't have permission "combatlog.reload":
  22. send "{@msg.noperm}"
  23. stop
  24. execute player command "sk reload %script%"
  25. send "{@tag} &cPrzeladowano"
  26. if arg 1 is "usun":
  27. if player doesn't have permission "combatlog.usun":
  28. send "{@msg.noperm}"
  29. stop
  30. if arg 2 is not set:
  31. send "{@tag} &fPodaj nick"
  32. stop
  33. if arg 3 parsed as number is not set:
  34. send "{@tag} &fPodaj liczbe"
  35. stop
  36. remove arg 3 from {liczba.relog::%arg 2%}
  37. send "{@tag} Usunieto punkty"
  38.  
  39. if arg 1 is "relogi":
  40. send "{@tag} Liczba relogow"
  41. send "&b----==== &f[&6%{liczba.relog::%name of player%}%&f] &b====----"
  42.  
  43. on damage:
  44. victim is a player
  45. attacker is a player
  46. set {combatlog.%victim%} to now
  47. add {@czas} to {combatlog.%victim%}
  48. execute command "/playsound random.anvil_land %attacker%"
  49. set {combatlog.%attacker%} to now
  50. add {@czas} to {combatlog.%attacker%}
  51. execute command "/playsound random.anvil_land %attacker%"
  52. if {wyslane.%victim%} is false:
  53. execute console command "/fly %victim% off"
  54. send "{@tag} Jestes w walce &b%attacker%&f. Nie wylogowywuj sie" to victim
  55. play 100 of effect "fireworksSpark" with data 1 at victim
  56. play 100 of effect "witchMagic" with data 1 at victim
  57. play 250 of effect "flame" with data 1 at victim
  58. remove Invisibility from the victim
  59. set {wyslane.%victim%} to true
  60. if {wyslane.%attacker%} is false:
  61. execute console command "/fly %attacker% off"
  62. send "{@tag} Jestes w walce &b%victim%&f. Nie wylogowywuj sie" to attacker
  63. play 100 of effect "fireworksSpark" with data 1 at attacker
  64. play 100 of effect "witchMagic" with data 1 at attacker
  65. play 250 of effect "flame" with data 1 at attacker
  66. remove Invisibility from the attacker
  67. set {wyslane.%attacker%} to true
  68. on quit:
  69. if {combatlog.%name of player%} is set:
  70. kill the player
  71. add 1 to {liczba.relog::%name of player%}
  72. broadcast "{@tag} &b%player% &fwylogowal sie podczas walki"
  73.  
  74. every 1 seconds:
  75. loop all players:
  76. if {combatlog.%loop-player%} is set:
  77. if {combatlog.%loop-player%} is smaller than now:
  78. delete {combatlog.%loop-player%}
  79. send "{@tag} Mozesz sie wylogowac" to loop-player
  80. set {wyslane.%loop-player%} to false
  81. play 500 of effect "reddust" with data 1 at loop-player
  82. execute command "/playsound mob.irongolem.death %loop-player%"
  83. if {liczba.relog::%loop-player%} is 2:
  84. broadcast "{@tag} &b%loop-player% &fwylogowal sie podczas walki"
  85. ban loop-player
  86. set {liczba.relog::%loop-player%} to 0
  87. on command:
  88. if {combatlog.%name of player%} is set:
  89. cancel event
  90. send "{@tag} Nie mozesz uzywac komend podczas walki!"
Advertisement
Add Comment
Please, Sign In to add comment