priMELval

panicspawn macro

Jan 22nd, 2017
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $${
  2.  
  3. // Bind to onSendChatMessage and onHealthChange
  4.  
  5. IF(%KEYNAME%="onHealthChange")
  6. IF(%@panicspawn%)
  7. IF(%HEALTH% < 6)
  8. ECHO(/spawn)
  9. ENDIF
  10. ENDIF
  11. ELSE
  12. IFMATCHES(%CHAT%,"^/panicspawn")
  13. FILTER
  14. IF(%@panicspawn%)
  15. UNSET(@panicspawn)
  16. LOG(&6[&4PANIC SPAWN&6] &aAuto /spawn off)
  17. ELSE
  18. SET(@panicspawn)
  19. LOG(&6[&4PANIC SPAWN&6] &aAuto /spawn on)
  20. ENDIF
  21. ENDIF
  22. ENDIF
  23.  
  24. }$$
Advertisement
Add Comment
Please, Sign In to add comment