Guest User

AntyRelog

a guest
Sep 23rd, 2014
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1.  
  2. #Skrypt wykonany na potrzeby użytkowników MPCForum ,przez master_girl!
  3.  
  4.  
  5. on quit:
  6. {in.combat.%player%} is true
  7. kill player
  8. broadcast "<grey>[AntyRelog] <light red>%player% zostal zabity za probe ucieczki z walki!"
  9.  
  10. delete {in.combat.%player%}
  11. delete {seconds.until.out.%player%}
  12. command /relogautor:
  13. trigger:
  14. send "&8<&c-&8>-------&9ANTYRELOG &6&lv1.0&f----------&8<&c-&8>"
  15. send " &6Skrypt napisany przez Master_Girl"
  16. send " &cNie wolno ci podszywac sie pod Autorke Skryptu&4&l!!"
  17. send "&8<&c-&8>-------&9ANTYRELOG &6&lv1.0&f----------&8<&c-&8>"
  18. command /reloghelp:
  19. trigger:
  20. send "&8<&c-&8> &6Komenda /skript reload antirelog - Restartuje skrypt"
  21. send "&8<&c-&8> &6Skrypt wlacza sie sam!"
  22.  
  23. on damage:
  24. victim is player
  25. attacker is player
  26. if {ochrona.%victim%} is true:
  27. cancel event
  28. if {ochrona.%attacker%} is true:
  29. cancel event
  30. else:
  31. if {in.combat.%victim%} is true:
  32. set {seconds.until.out.%victim%} to 10
  33. stop
  34. send "<grey>[AntyRelog] <light red>Jestes w walce. Nie wychodz z gry!" to victim
  35. set {in.combat.%victim%} to true
  36. set {seconds.until.out.%victim%} to 10
  37. while {seconds.until.out.%victim%} is more than 1:
  38. {seconds.until.out.%victim%} is not set:
  39. stop
  40. subtract 1 from {seconds.until.out.%victim%}
  41. wait 1 second
  42. delete {in.combat.%victim%}
  43. delete {seconds.until.out.%victim%}
  44. send "<grey>[AntyRelog] <light green>Mozesz sie bezpiecznie wylogowac" to victim
  45.  
  46. on damage:
  47. victim is player
  48. attacker is player
  49. if {ochrona.%victim%} is true:
  50. cancel event
  51. if {ochrona.%attacker%} is true:
  52. cancel event
  53. else:
  54. if {in.combat.%attacker%} is true:
  55. set {seconds.until.out.%attacker%} to 10
  56. stop
  57. send "<grey>[PanRelog] <light red>Jestes w walce. Nie wychodz z gry!" to attacker
  58. set {in.combat.%attacker%} to true
  59. set {seconds.until.out.%attacker%} to 10
  60. while {seconds.until.out.%attacker%} is more than 1:
  61. {seconds.until.out.%attacker%} is not set:
  62. stop
  63. subtract 1 from {seconds.until.out.%attacker%}
  64. wait 1 second
  65. delete {in.combat.%attacker%}
  66. delete {seconds.until.out.%attacker%}
  67. send "<grey>[AntyRelog] <light green>Mozesz sie bezpiecznie wylogowac" to attacker
  68.  
  69. on join:
  70. {in.combat.%player%} is set:
  71. delete {in.combat.%player%}
  72. {seconds.until.out.%player%} is set:
  73. delete {seconds.until.out.%player%}
Advertisement
Add Comment
Please, Sign In to add comment