Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using Addon;
- using System.Collections;
- namespace mes
- {
- public class mes : CPlugin
- {
- int Interval;
- public override void OnMapChange()
- {
- Interval = 0;
- }
- public override void OnFastRestart()
- {
- Interval = 0;
- }
- public override void OnServerFrame()
- {
- List<ServerClient> clients;
- try
- {
- clients = GetClients();
- if (clients != null)
- {
- foreach (ServerClient client in GetClients())
- {
- {
- if (Interval <= 0)
- {
- iPrintLn("asdasd", null);
- Interval = 60 * 60; // period 60 sec
- }
- }
- }
- }
- }
- catch (Exception e)
- {
- ServerPrint("Error: \n" +
- e.Message + "\n" +
- e.StackTrace + "\n" +
- e.Source + "\n" +
- e.InnerException + "\n" +
- e.HelpLink);
- }
- if (Interval > 0)
- Interval--;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement