Advertisement
Brian9985

asdasd

Dec 19th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using Addon;
  4. using System.Collections;
  5.  
  6. namespace mes
  7. {
  8. public class mes : CPlugin
  9. {
  10. int Interval;
  11.  
  12. public override void OnMapChange()
  13. {
  14. Interval = 0;
  15. }
  16.  
  17. public override void OnFastRestart()
  18. {
  19. Interval = 0;
  20. }
  21.  
  22. public override void OnServerFrame()
  23. {
  24. List<ServerClient> clients;
  25. try
  26. {
  27. clients = GetClients();
  28. if (clients != null)
  29. {
  30. foreach (ServerClient client in GetClients())
  31. {
  32.  
  33. {
  34. if (Interval <= 0)
  35. {
  36. iPrintLn("asdasd", null);
  37. Interval = 60 * 60; // period 60 sec
  38. }
  39.  
  40. }
  41. }
  42. }
  43. }
  44. catch (Exception e)
  45. {
  46. ServerPrint("Error: \n" +
  47. e.Message + "\n" +
  48. e.StackTrace + "\n" +
  49. e.Source + "\n" +
  50. e.InnerException + "\n" +
  51. e.HelpLink);
  52. }
  53.  
  54. if (Interval > 0)
  55. Interval--;
  56.  
  57. }
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement