Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. options:
  2. Prefix: &8&l[&c&l!&8&l]
  3. CT-Time: 15
  4. MobsCombat-Tag: true
  5.  
  6. command /combattag:
  7. aliases: /combatlog,/ct,/cl
  8. trigger:
  9. if {combatlog::*} contains player:
  10. set {_CT.span} to difference between {%player%.combatlog.time} and now
  11. set {_CT.cd} to "{@CT-Time} seconds" parsed as timespan
  12. send "{@Prefix} &fYou are Combat Tag for &e%difference between {_CT.span} and {_CT.cd}%"
  13. else:
  14. send "{@Prefix} &fYou are not in Combat Tag"
  15. on unload:
  16. delete {combatlog::*}
  17. delete {combatlag.blocked-cmds::*}
  18. delete {kill.combat::*}
  19.  
  20. on load:
  21. add "tpa" to {combatlag.blocked-cmds::*}
  22. add "home" to {combatlag.blocked-cmds::*}
  23. add "spawn" to {combatlag.blocked-cmds::*}
  24. add "fly" to {combatlag.blocked-cmds::*}
  25.  
  26. on damage:
  27. if attacker is player:
  28. if attacker is not victim:
  29. if {combatlog::*} doesn't contain "%attacker%":
  30. if attacker doesn't have permission "CT.Bypass.Player":
  31. add "%attacker%" to {combatlog::*}
  32. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
  33. console command "/fly %attacker% disable"
  34. if {combatlog::*} doesn't contain "%victim%":
  35. if victim doesn't have permission "CT.Bypass.Player":
  36. add "%victim%" to {combatlog::*}
  37. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%attacker%" to victim
  38. console command "/fly %victim% disable"
  39. set {%attacker%.combatlog.time} to now
  40. set {%victim%.combatlog.time} to now
  41. else:
  42. if {@MobsCombat-Tag} is true:
  43. if attacker doesn't have permission "CT.Bypass.Mobs":
  44. if {combatlog::*} doesn't contain "%attacker%":
  45. add "%attacker%" to {combatlog::*}
  46. send "{@Prefix} &fYou are &cCombat Tag &fwith &e%victim%" to attacker
  47. console command "/fly %attacker% disable"
  48. on command:
  49. if {combatlog::*} contains player:
  50. if {combatlag.blocked-cmds::*} contains command:
  51. cancel event
  52. send "{@Prefix} &fYou can't use that command while in &cCombat Tag" to player
  53.  
  54. on join:
  55. if {kill.combat::*} contains player:
  56. wait 1 second
  57. console command "/kill %player%"
  58. remove player from {kill.combat::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement