UchihaT3Alo

Login Count

Oct 26th, 2025
974
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.24 KB | Source Code | 0 0
  1.      var pool = Pool.GamePoll.Values.ToArray();
  2.      if (!string.IsNullOrEmpty(client.OnLogin.HWID) && pool.Count(i => i.OnLogin.HWID == client.OnLogin.HWID) >= 3)
  3.      {
  4.          using (var rec = new ServerSockets.RecycledPacket())
  5.          {
  6.              var stream = rec.GetStream();
  7.              Console.WriteLine($"{client.OnLogin.MachineName}  try open more than 3 accounts [{client.OnLogin.Key}]");
  8.              client.Send(new MsgServer.MsgMessage("You can not open more than 3 accounts.", "ALLUSERS", MsgMessage.MsgColor.red, MsgMessage.ChatMode.Dialog).GetArray(stream));
  9.          }
  10.          return;
  11.      }
  12.      pool = Pool.GamePoll.Values.ToArray();
  13.      if (!string.IsNullOrEmpty(client.OnLogin.MacAddress) && pool.Count(i => i.OnLogin.MacAddress == client.OnLogin.MacAddress) >= 3)
  14.      {
  15.          using (var rec = new ServerSockets.RecycledPacket())
  16.          {
  17.              var stream = rec.GetStream();
  18.              Console.WriteLine($"{client.OnLogin.MachineName}  try open more than 3 accounts [{client.OnLogin.Key}]");
  19.              client.Send(new MsgServer.MsgMessage("You can not open more than 3 accounts.", "ALLUSERS", MsgMessage.MsgColor.red, MsgMessage.ChatMode.Dialog).GetArray(stream));
  20.          }
  21.          return;
  22.      }
Advertisement
Add Comment
Please, Sign In to add comment