Advertisement
Doug4347

Spam Bot (Mainly for SAMP)

Aug 26th, 2016
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Instructions:
  3. - Go to line 21
  4. - Set your spam message
  5. - Press Alt + 1 to toggle
  6.  
  7. Optional:
  8. - Go to line 24
  9. - Set spam delay
  10. - This will delay each spam message by this number in ms.
  11.  
  12. - Enjoy your chaos and short amount of time before being warned, kicked, and/or banned from any SAMP server.
  13.  
  14. DEV Notes found at the bottom.
  15. */
  16.  
  17. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  18. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  19.  
  20. UpdateVar:
  21. Spam = My Spam Here
  22. If VarUpdate
  23.     Return
  24. SpamDelay:=0
  25. Return
  26. !1::
  27.     If SpammerOn
  28.     {
  29.         SpammerOn:=False
  30.         SetTimer, Spammer, Off
  31.     }
  32.     Else
  33.     {
  34.         SpammerOn:=True
  35.         Index:=0
  36.         SetTimer, Spammer, 0
  37.         SetTimer, Spammer, On
  38.     }
  39. Return
  40.  
  41. Spammer:
  42.     Index+=1
  43.     IfInString, Spam, `%Index`%
  44.     {
  45.         VarUpdate:=True
  46.         GoSub, UpdateVar
  47.         VarUpdate:=False
  48.     }
  49.     Send, t^a%Spam%{Enter}
  50.     If SpamDelay
  51.         Sleep, %SpamDelay%
  52. Return
  53.  
  54. /*
  55. DEV Notes:
  56.  
  57. IDC what you do with it, YOU USED IT, NOT MY PROBLEM.
  58.  
  59. If you choose to use software that is clearly stated as against the rules of a server,
  60. you will be punished, not me, and I don't take responsibility.
  61.  
  62. You get yourself punished, don't come crying to me.
  63.  
  64. Also, pancakes are nice with ice cream. You should try some.
  65. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement