Advertisement
Sanwi

SnitchHitAlert

Mar 26th, 2014
485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $${
  2. // Turns your volume to a specified level, and plays a sound when a specific string is shown in chat.
  3. // Name a snitch with a specific code (/janame snitchname), and the sound will play when someone enters the snitch field.
  4. // This file must be bound to the OnChat event. Press SHIFT ~ to open the macro mod menu, then use the arrows at the
  5. // top of the screen to find "Macro Bindings: Events"
  6. // Click the "OnChat" button, then use "$$<filename.txt>" to bind this file to the event.
  7.  
  8. // If you want it to log out, remove the // from line 22
  9. // By doing this, you can make it impossible for your bots to be killed.
  10.  
  11. // Config
  12.  
  13. &string = "snitchname"
  14. #setvolume = 100
  15. #alertvolume = 100
  16.  
  17. // End Config
  18.  
  19. ifcontains(%CHATCLEAN%,"%&string%");
  20. volume(%#setvolume%);
  21. playsound(custom.ExtralongWarp,%#alertvolume%);
  22. // disconnect();
  23. endif;
  24.  
  25. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement