|
المشاركات 50 |
+التقييم 0.03 |
تاريخ التسجيل Jul 2019 |
الاقامة زعـلأان منـكك !! |
نظام التشغيل مبـرشـم ♥ |
رقم العضوية 448 |
static void MacInfo(GameClient client, string[] command)
{
List<uint> UIDS = new List<uint>();
List<string> MessageList = new List<string>();
string mac = "";
foreach (var player in Kernel.GamePool.Values)
if (player.Entity.LoweredName.Contains(command[1]))
mac = player.Account.MacAddress;
if (mac != "")
{
using (var cmd = new Database.MySqlCommand(Database.MySqlCommandType.SELECT).Select("accounts").Where("MacAddress", mac))
using (var reader = new Database.MySqlReader(cmd))
{
while (reader.Read())
{
if (reader.ReadString("MacAddress") == mac && !UIDS.Contains(reader.ReadUInt32("EntityID")))
UIDS.Add(reader.ReadUInt32("EntityID"));
}
}
}
byte count = 0;
foreach (var uid in UIDS)
{
using (var cmd = new Database.MySqlCommand(Database.MySqlCommandType.SELECT).Select("entities").Where("UID", uid))
using (var reader = new Database.MySqlReader(cmd))
{
while (reader.Read())
{
MessageList.Add(reader.ReadString("Name"));
count++;
}
}
}
client.Send(new Message("Player Count: " + count, System.Drawing.Color.Red, Message.ChatType.FirstRightCorner));
foreach (var msg in MessageList)
client.Send(new Message(msg, System.Drawing.Color.Red, Message.ChatType.ContinueRightCorner));
case "meendh":
{
List<uint> UIDS = new List<uint>();
List<string> MessageList = new List<string>();
string mac = "";
foreach (var player in Kernel.GamePool.Values)
if (player.Entity.LoweredName.Contains(Data[1]))
mac = player.Account.MacAddress;
if (mac != "")
{
using (var cmd = new Database.MySqlCommand(Database.MySqlCommandType.SELECT).Select("accounts").Where("MacAddress", mac))
using (var reader = new Database.MySqlReader(cmd))
{
while (reader.Read())
{
if (reader.ReadString("MacAddress") == mac && !UIDS.Contains(reader.ReadUInt32("EntityID")))
UIDS.Add(reader.ReadUInt32("EntityID"));
}
}
}
byte count = 0;
foreach (var uid in UIDS)
{
using (var cmd = new Database.MySqlCommand(Database.MySqlCommandType.SELECT).Select("entities").Where("UID", uid))
using (var reader = new Database.MySqlReader(cmd))
{
while (reader.Read())
{
MessageList.Add(reader.ReadString("Name"));
count++;
}
}
}
client.Send(new Message("Player Count: " + count, System.Drawing.Color.Red, GamePackets.Message.ContinueRightCorner));
foreach (var msg in MessageList)
client.Send(new KhaledMohamed.Network.GamePackets.Message("" + msg, System.Drawing.Color.Green, GamePackets.Message.ContinueRightCorner));
break;
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
بمنــااسـبة المـســابـقة سـوورس جـمـيـل جـدا | Mr. Co | سورسات كونكر | 143 | يوم أمس 07:24 PM |