Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] iPrintLn Automatic time
#11
(12-20-2012, 00:15)XxBRxX Wrote:
(12-19-2012, 18:45)[Z00MBY] Alex Wrote: This works for me perfectly. I checked out. I cited an example. To use it or not, decide for yourself.

hey guys.
I pull some lines that gave me error.
tego version of teknogods v206..
I'll see if it works that way.

Code:
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("message", null);
                                Interval = 60 * 60; // period 60 sec
                            }

                        }
                    }
                }
            }
            catch (Exception e)
            {
                ServerPrint("Error in mes plugin: \n" +
                             e.Message + "\n" +
                             e.StackTrace + "\n" +
                             e.Source + "\n" +
                             e.InnerException + "\n" +
                             e.HelpLink);
            }

            if (Interval > 0)
                Interval--;

        }
    }
}

worked perfectly!
Thank you very much man!
Reply

#12
Glad to help! Smile
Reply

#13
(12-20-2012, 06:18)[Z00MBY] Alex Wrote: Glad to help! Smile

I wanted to ask a few more things ...
know how to enlarge the letters and put more permanence?
Reply

#14
I thought you couldn't make the letters bigger, and about the permanence I don't know
[Image: b_560_95_1.png]
[Image: hax0r3ez.gif]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Request for Assistance with Modding COD: BO using Mod Tools one1lion 9 6,673 09-17-2013, 21:04
Last Post: one1lion
  [Request] Airdrop Heaven mod The_Reaper_1 0 2,452 09-10-2013, 14:13
Last Post: The_Reaper_1
  [Request] Request for !afk and !balance plugins. UlTiiMaTuM 3 3,572 09-10-2013, 02:13
Last Post: UlTiiMaTuM
Information [Request] Need Time Plugin and Server Msg Plugin sylvester123 14 9,361 07-26-2013, 08:07
Last Post: sylvester123
  4D1 Extend Feeding Time Tacticalicious 1 2,587 07-02-2013, 20:59
Last Post: surtek
  [REQUEST] Antinoob mod sleepunknot 3 3,125 05-15-2013, 20:10
Last Post: sleepunknot
Tongue What are you doing in free time? Nekochan 16 8,862 05-05-2013, 08:25
Last Post: Pozzuh
  Moab and server request CHRISLUVMSR 6 4,687 04-17-2013, 18:28
Last Post: X-Track
  [Request] Teknogods Expert's Classes 1.5 request The6thMessenger 0 2,428 04-13-2013, 08:22
Last Post: The6thMessenger
  [Request] Automatic save Rendflex 10 6,270 04-06-2013, 21:51
Last Post: barata

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.