Advertisement
Guest User

Antispam

a guest
Dec 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. //=========================== AntiSpam =============================================================
  2.  
  3. local spammer = (GetTickCount()-MSNCount[player.ID])/MSNxSEC;
  4. MSNPlayer[player.ID]+=spammer-1;
  5. if(MSNPlayer[player.ID]>LIMIT_REP_SPAM)MSNPlayer[player.ID]=LIMIT_REP_SPAM-1;
  6. if(MSNPlayer[player.ID]<0)MSNPlayer[player.ID]= -1;
  7. MSNCount[player.ID]=GetTickCount();
  8. if(MSNPlayer[player.ID]<0)
  9. {
  10. Message(RED+">> Auto-Muted [ " + player.Name + " ] For 20Secs Reason: [ Spamming/Flooding].");
  11. EchoMessage(ICOL_RED+">> Auto-Muted [ " + player.Name + " ] For 20Secs Reason: [ Spamming/Flooding].");
  12. status[ player.ID].Muted = true;
  13. NewTimer( "autounmute", 20000, 1, player.Name, player.ID );
  14. NewTimer( "Count1", 1000, 1, 20, player.ID );
  15. NewTimer( "Count1", 2000, 1, 19, player.ID );
  16. NewTimer( "Count1", 3000, 1, 18, player.ID );
  17. NewTimer( "Count1", 4000, 1, 17, player.ID );
  18. NewTimer( "Count1", 5000, 1, 16, player.ID );
  19. NewTimer( "Count1", 6000, 1, 15, player.ID );
  20. NewTimer( "Count1", 7000, 1, 14, player.ID );
  21. NewTimer( "Count1", 8000, 1, 13, player.ID );
  22. NewTimer( "Count1", 9000, 1, 12, player.ID );
  23. NewTimer( "Count1", 10000, 1, 11, player.ID );
  24. NewTimer( "Count1", 11000, 1, 10, player.ID );
  25. NewTimer( "Count1", 12000, 1, 9, player.ID );
  26. NewTimer( "Count1", 13000, 1, 8, player.ID );
  27. NewTimer( "Count1", 14000, 1, 7, player.ID );
  28. NewTimer( "Count1", 15000, 1, 6, player.ID );
  29. NewTimer( "Count1", 16000, 1, 5, player.ID );
  30. NewTimer( "Count1", 17000, 1, 4, player.ID );
  31. NewTimer( "Count1", 18000, 1, 3, player.ID );
  32. NewTimer( "Count1", 19000, 1, 2, player.ID );
  33. NewTimer( "Count1", 20000, 1, 1, player.ID );
  34. }
  35. //=======================================================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement