المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : عمل شفراة محدودة للبي ام


ElSaher
2020-01-30, 12:53 PM
عايز اخلي البي ام مش يعمل غير الشفراة دي
cps
Ban
kick
Bring
Trace
اسكلت الجي ام
بس كدا

ياريت رد سريععع

عايز الاضافت كاملة

سورس عادي

Hassan Emprator
2020-01-30, 01:08 PM
في الشفرات هنا

Program.AddGMCommand


#region PMs
if (client.Account.State == MrHassan.Database.AccountTable.AccountState.PMMana ger)
{
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,


وهتكتب لو هتعرف بي ام هتكتب في state
3