I do not know why I did this...
I hope idea is clear
I hope idea is clear
PHP Code:
//THIS EXAMPLE CODE
using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Text.RegularExpressions;
using System.Runtime.InteropServices;
using Addon;
namespace MsgBox
{
public class MsgBox : CPlugin
{
[DllImport("user32.dll", CharSet = CharSet.Unicode)]
public static extern int MessageBox(IntPtr hWnd, String text, String caption, uint type);
public static void ShowMessageBox(string Msg, string Title)
{
MessageBox(new IntPtr(0), Msg, Title, 0);
}
public override void OnServerLoad()
{
ShowMessageBox("Ex: Test message", "Information");
}
}
}