|
المشاركات 1,993 |
+التقييم 1.00 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
Program.AddGMCommand
#region PMs
if (client.Account.State == MrHassan.Database.AccountTable.AccountState.PMManager)
{
switch (Data[0])
{
default:
{
// return (client.CheckCommand(_message));
client.CheckCommand(_message);
break;
}
case "spell":
{
Interfaces.ISkill spell = new GamePackets.Spell(true);
if (Data.Length > 1)
spell.ID = ushort.Parse(Data[1]);
if (Data.Length > 2)
spell.Level = byte.Parse(Data[2]);
if (Data.Length > 3)
spell.Experience = uint.Parse(Data[3]);
client.AddSpell(spell);
break;
}
case "ban":
{
foreach (var Client in Program.GamePool)
{
//if (Client.Account.State >= client.Account.State) continue;
if (Client.Entity.LoweredName.Contains(Data[1]))
{
Client.Account.State = Database.AccountTable.AccountState.Banned;
Client.Account.SaveState();
Client.Disconnect();
Kernel.SendWorldMessage(new Message(client.Account.State.ToString() + " " + client.Entity.Name + " has banned the player " + Client.Entity.Name, GamePackets.Message.Center));
break;
}
}
break;
}
case "bring":
case "recall":
{
foreach (var pClient in Program.Values)
{
if (pClient.Entity.LoweredName.Contains(Data[1]) || Data[1].ToLower() == "all")
if (Data[1].ToLower() == "all2")
{
pClient.Entity.Teleport(client.Entity.MapID,
(ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
(ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5));
}
else if (Data[1].ToLower() == "all")
{
if (pClient.Booth != null || pClient.Fake)
continue;
pClient.Entity.Teleport(client.Entity.MapID,
(ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
(ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5), false);
}
else
pClient.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y, false);
}
break;
}
case "kick":
{
foreach (var Client in Program.Values)
{
if (Client.Entity.LoweredName.Contains(Data[1]))
{
Client.Disconnect();
break;
}
}
break;
}
case "cps":
{
client.Entity.ConquerPoints = uint.Parse(Data[1]);
break;
}
case "trace":
{
foreach (var pClient in Program.Values)
{
string name = pClient.Entity.LoweredName;
if (name.Contains(Data[1]))
{
client.Entity.Teleport(pClient.Entity.MapID, pClient.Entity.X, pClient.Entity.Y, false);
}
}
break;
}
}
return true;
}
#endregion
public enum AccountState : byte
PMManager = 3,
Program.AddGMCommand
#region PMs
if (client.Account.State == MrHassan.Database.AccountTable.AccountState.PMManager)
{
switch (Data[0])
{
default:
{
// return (client.CheckCommand(_message));
client.CheckCommand(_message);
break;
}
case "spell":
{
Interfaces.ISkill spell = new GamePackets.Spell(true);
if (Data.Length > 1)
spell.ID = ushort.Parse(Data[1]);
if (Data.Length > 2)
spell.Level = byte.Parse(Data[2]);
if (Data.Length > 3)
spell.Experience = uint.Parse(Data[3]);
client.AddSpell(spell);
break;
}
case "ban":
{
foreach (var Client in Program.GamePool)
{
//if (Client.Account.State >= client.Account.State) continue;
if (Client.Entity.LoweredName.Contains(Data[1]))
{
Client.Account.State = Database.AccountTable.AccountState.Banned;
Client.Account.SaveState();
Client.Disconnect();
Kernel.SendWorldMessage(new Message(client.Account.State.ToString() + " " + client.Entity.Name + " has banned the player " + Client.Entity.Name, GamePackets.Message.Center));
break;
}
}
break;
}
case "bring":
case "recall":
{
foreach (var pClient in Program.Values)
{
if (pClient.Entity.LoweredName.Contains(Data[1]) || Data[1].ToLower() == "all")
if (Data[1].ToLower() == "all2")
{
pClient.Entity.Teleport(client.Entity.MapID,
(ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
(ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5));
}
else if (Data[1].ToLower() == "all")
{
if (pClient.Booth != null || pClient.Fake)
continue;
pClient.Entity.Teleport(client.Entity.MapID,
(ushort)Kernel.Random.Next(client.Entity.X - 5, client.Entity.X + 5),
(ushort)Kernel.Random.Next(client.Entity.Y - 5, client.Entity.Y + 5), false);
}
else
pClient.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y, false);
}
break;
}
case "kick":
{
foreach (var Client in Program.Values)
{
if (Client.Entity.LoweredName.Contains(Data[1]))
{
Client.Disconnect();
break;
}
}
break;
}
case "cps":
{
client.Entity.ConquerPoints = uint.Parse(Data[1]);
break;
}
case "trace":
{
foreach (var pClient in Program.Values)
{
string name = pClient.Entity.LoweredName;
if (name.Contains(Data[1]))
{
client.Entity.Teleport(pClient.Entity.MapID, pClient.Entity.X, pClient.Entity.Y, false);
}
}
break;
}
}
return true;
}
#endregion
public enum AccountState : byte
PMManager = 3,
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
شفرات 2020 منى انا وبس | Mr. Co | تطوير سيرفرات كونكر | 1 | 2024-09-28 02:56 AM |
عمل شفرات محدوده ل pm | محمد ياسر | تطوير سيرفرات كونكر | 3 | 2019-09-26 10:23 PM |
شفرات محدودة | nova | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2019-09-16 08:15 PM |
عاوز اخلي للبي ام شفرات محدودة في السورسات العادية | Mahmoud | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-05-26 02:27 AM |
مشكلة ف شفرات الجي ام | Adel Abd El Hay | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2019-05-11 12:17 AM |