2023-07-29 23:37:10 +05:30

26 lines
521 B
C#

using System.Windows.Forms;
using MessagePackLib.MessagePack;
using Server.Connection;
using Server.Forms;
namespace Server.Handle_Packet;
public class HandleFun
{
public void Fun(Clients client, MsgPack unpack_msgpack)
{
try
{
FormFun formFun = (FormFun)Application.OpenForms["fun:" + unpack_msgpack.ForcePathObject("Hwid").AsString];
if (formFun != null && formFun.Client == null)
{
formFun.Client = client;
formFun.timer1.Enabled = true;
}
}
catch
{
}
}
}