قديم 2020-01-30, 01:08 PM
المشاركة 2
Hassan Emprator
.:: عضو خبير ::.
  • غير متواجد
افتراضي رد: عمل شفراة محدودة للبي ام
في الشفرات هنا


كود:
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.NameGamePackets.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.5client.Entity.5),
                                                    (
ushort)Kernel.Random.Next(client.Entity.5client.Entity.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.5client.Entity.5),
                                                    (
ushort)Kernel.Random.Next(client.Entity.5client.Entity.5), false);
                                            }
                                            else
                                                
pClient.Entity.Teleport(client.Entity.MapIDclient.Entity.Xclient.Entity.Yfalse);

                                    }
                                    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.MapIDpClient.Entity.XpClient.Entity.Yfalse);
                                        }
                                    }
                                    break;
                                }
                        }
                        return 
true;
                    }
                    
#endregion 

سيرش عا


كود:
public enum AccountState byte 

ضيف


كود:
            PMManager 3

وهتكتب لو هتعرف بي ام هتكتب في state
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


الساعة الآن 02:45 PM

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.