احصائياتى

الردود
2

المشاهدات
292
 
Tyranny-Team's
.:: عضو نشيط ::.
الإجابات المقدمة: 5

المشاركات
236

+التقييم
0.10

تاريخ التسجيل
Mar 2020

الاقامة
مصر

نظام التشغيل
ويندوز 7

رقم العضوية
3560
2020-04-15, 04:51 PM
المشاركة 1
2020-04-15, 04:51 PM
المشاركة 1
exclamationpointss تمت الإجابة ان بي سي فوت Vote
مطلوب ان بي سي فوت Vote
اللي معاه الأن بي سي بتاع الفوت
انو ميديش 1 بوينت فوت الا لم يعمل فوت الاول وبعدين لم يعمل الفوت يجيلو السي بي والبوينت


أفضل جواب - كتبه Hassan Emprator
الانبي سي

كود:
              #region Vote System
                                
case 333012:
                                    {

                                        
dialog.Avatar(241);

                                        switch (
npcRequest.OptionID)
                                        {

                                            case 
0:
                                                {

                                                    
dialog.Text("Hey, " + client.Player.Name + "This Vote System if You Voteing Will Get 10 Mellion [Cps] & 2 VotePoints Can Vote Agin After 12 Hours");

                                                    
dialog.Text("Your VotePoints`s Count is :[ " + client.VotePoints + " ] .");

                                                    
dialog.Option("Yes, I Wanna Vote", 1);

                                                    
dialog.Option("ExchangePoint's", 2);

                                                    
dialog.Option("No thank you", 255);

                                                    
dialog.Send();

                                                    break;

                                                }

                                            case 
1:
                                                {

                                                    if (!
Kernel.VotePool.ContainsKey(client.Account.IP))
                                                    {

                                                        if (!
Kernel.VotePoolUid.ContainsKey(client.Player.UID))
                                                        {

                                                            
client.VotePoints += 2;

                                                           
//client.Player.ConquerPoints += 10000000;

                                                            
client.Voted = true;

                                                            
MrHassan.Database.VipTable.PlayersVot Vot = new MrHassan.Database.VipTable.PlayersVot.PlayersVot();

                                                            
Vot.AdressIp = client.Account.IP;

                                                            
Vot.Uid = client.Player.UID;

                                                            
Kernel.VotePool.Add(Vot.AdressIp, Vot);

                                                            
Kernel.VotePoolUid.Add(Vot.Uid, Vot);

                                                            
Database.EntityTable.SavePlayersVot(Vot);

                                                            
client.Send(new Message("http://www.xtremetop100.com/in.php?site=1132368885", System.Drawing.Color.Red, Network.GamePackets.Message.Website));

                                                        }

                                                        else
                                                        {

                                                            
dialog.Text("Sorry, But You Already Voted Come Back After 12 Hour.");

                                                            
dialog.Option("Oh, Sorry I Foget", 255);

                                                            
dialog.Send();

                                                        }

                                                    }

                                                    else
                                                    {

                                                        
dialog.Text("Sorry, But You  Already Voted Come Back After 12 Hour.");

                                                        
dialog.Option("Oh, Sorry I Foget", 255);

                                                        
dialog.Send();

                                                    }

                                                    break;



                                                }

                                            case 
2:
                                                {
                                                    
dialog.Text("Hello Player, I'm here to give you rewards for your votes !.");
                                                    
dialog.Option("About VotePoints", 15);//Done
                                                    
dialog.Option("Check my Points.", 20);//Done
                                                    
dialog.Option("SoulS[P8] (20 VotePoints)\n", 30);//Done
                                                    
dialog.Option("DeathConquer[Cup] -- 1 Days (20 VotePoints)\n", 3);//Done
                                                    
dialog.Option("GoldPrize[CUP] -- 1 Days (10 VotePoints)\n", 29);//Done
                                                    
dialog.Option("SavagePone 30 (10 VotePoints)", 5);//Done
                                                    
dialog.Option("VIP [7] Days 1 (10 VotePoints)", 6);//Done
                                                    
dialog.Option("VIP [8] Days 1 (20 VotePoints)", 8);//Done
                                                    
dialog.Option("ConquerPoints [100M] (5 VotePoints)", 9);//Done
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
25:
                                            case 
3:
                                            case 
9:
                                            case 
5:
                                            case 
6:
                                            case 
8:
                                            case 
15:
                                            case 
20:
                                            case 
29:
                                            case 
30:
                                                if (
npcRequest.OptionID == 3)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(2100085, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 29)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 6)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 7, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 30)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(3004248, 0, 1);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 9)
                                                {
                                                    if (
client.VotePoints >= 5)
                                                    {
                                                        
client.VotePoints -= 5;
                                                        
client.Player.ConquerPoints += 100000000;
                                                        
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 5 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 8)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 8, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 5)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(3004181, 0, 30);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                break;



                                        }

                                        break;

                                    }

                                
#endregion 

في كلاس


كود:
  public class VipVariables 

ضيف دا في اي حته


كود:
       public class PlayersVot
        
{
            public 
string AdressIp;
            public 
uint Uid;
        } 

في كلاس Kernel

ضيف


كود:
         public static Dictionary<string, PlayersVot> VotePool = new Dictionary<string, PlayersVot>();
        public static 
Dictionary<uint, PlayersVot> VotePoolUid = new Dictionary<uint, PlayersVot>(); 

في GameState

ضيف


كود:
         public uint VotePoints
        
{
            
get { return this["VotePoints"]; }
            
set
            
{
                
this["VotePoints"] = value;
            }
        } 

بالتوفيق <3
قديم 2020-04-16, 01:40 PM
المشاركة 2
Hassan Emprator
.:: مشرف قسم المشاكل ::.
الإجابات المقدمة: 301
  • غير متواجد
افتراضي رد: ان بي سي فوت Vote
الانبي سي

كود:
              #region Vote System
                                
case 333012:
                                    {

                                        
dialog.Avatar(241);

                                        switch (
npcRequest.OptionID)
                                        {

                                            case 
0:
                                                {

                                                    
dialog.Text("Hey, " + client.Player.Name + "This Vote System if You Voteing Will Get 10 Mellion [Cps] & 2 VotePoints Can Vote Agin After 12 Hours");

                                                    
dialog.Text("Your VotePoints`s Count is :[ " + client.VotePoints + " ] .");

                                                    
dialog.Option("Yes, I Wanna Vote", 1);

                                                    
dialog.Option("ExchangePoint's", 2);

                                                    
dialog.Option("No thank you", 255);

                                                    
dialog.Send();

                                                    break;

                                                }

                                            case 
1:
                                                {

                                                    if (!
Kernel.VotePool.ContainsKey(client.Account.IP))
                                                    {

                                                        if (!
Kernel.VotePoolUid.ContainsKey(client.Player.UID))
                                                        {

                                                            
client.VotePoints += 2;

                                                           
//client.Player.ConquerPoints += 10000000;

                                                            
client.Voted = true;

                                                            
MrHassan.Database.VipTable.PlayersVot Vot = new MrHassan.Database.VipTable.PlayersVot.PlayersVot();

                                                            
Vot.AdressIp = client.Account.IP;

                                                            
Vot.Uid = client.Player.UID;

                                                            
Kernel.VotePool.Add(Vot.AdressIp, Vot);

                                                            
Kernel.VotePoolUid.Add(Vot.Uid, Vot);

                                                            
Database.EntityTable.SavePlayersVot(Vot);

                                                            
client.Send(new Message("http://www.xtremetop100.com/in.php?site=1132368885", System.Drawing.Color.Red, Network.GamePackets.Message.Website));

                                                        }

                                                        else
                                                        {

                                                            
dialog.Text("Sorry, But You Already Voted Come Back After 12 Hour.");

                                                            
dialog.Option("Oh, Sorry I Foget", 255);

                                                            
dialog.Send();

                                                        }

                                                    }

                                                    else
                                                    {

                                                        
dialog.Text("Sorry, But You  Already Voted Come Back After 12 Hour.");

                                                        
dialog.Option("Oh, Sorry I Foget", 255);

                                                        
dialog.Send();

                                                    }

                                                    break;



                                                }

                                            case 
2:
                                                {
                                                    
dialog.Text("Hello Player, I'm here to give you rewards for your votes !.");
                                                    
dialog.Option("About VotePoints", 15);//Done
                                                    
dialog.Option("Check my Points.", 20);//Done
                                                    
dialog.Option("SoulS[P8] (20 VotePoints)\n", 30);//Done
                                                    
dialog.Option("DeathConquer[Cup] -- 1 Days (20 VotePoints)\n", 3);//Done
                                                    
dialog.Option("GoldPrize[CUP] -- 1 Days (10 VotePoints)\n", 29);//Done
                                                    
dialog.Option("SavagePone 30 (10 VotePoints)", 5);//Done
                                                    
dialog.Option("VIP [7] Days 1 (10 VotePoints)", 6);//Done
                                                    
dialog.Option("VIP [8] Days 1 (20 VotePoints)", 8);//Done
                                                    
dialog.Option("ConquerPoints [100M] (5 VotePoints)", 9);//Done
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
25:
                                            case 
3:
                                            case 
9:
                                            case 
5:
                                            case 
6:
                                            case 
8:
                                            case 
15:
                                            case 
20:
                                            case 
29:
                                            case 
30:
                                                if (
npcRequest.OptionID == 3)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(2100085, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 29)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 6)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 7, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 30)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(3004248, 0, 1);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 9)
                                                {
                                                    if (
client.VotePoints >= 5)
                                                    {
                                                        
client.VotePoints -= 5;
                                                        
client.Player.ConquerPoints += 100000000;
                                                        
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 5 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 8)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 8, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 5)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(3004181, 0, 30);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                break;



                                        }

                                        break;

                                    }

                                
#endregion 

في كلاس


كود:
  public class VipVariables 

ضيف دا في اي حته


كود:
       public class PlayersVot
        
{
            public 
string AdressIp;
            public 
uint Uid;
        } 

في كلاس Kernel

ضيف


كود:
         public static Dictionary<string, PlayersVot> VotePool = new Dictionary<string, PlayersVot>();
        public static 
Dictionary<uint, PlayersVot> VotePoolUid = new Dictionary<uint, PlayersVot>(); 

في GameState

ضيف


كود:
         public uint VotePoints
        
{
            
get { return this["VotePoints"]; }
            
set
            
{
                
this["VotePoints"] = value;
            }
        } 

بالتوفيق <3

قديم 2020-04-17, 01:38 AM
المشاركة 3
Tyranny-Team's
.:: عضو نشيط ::.
الإجابات المقدمة: 5
  • غير متواجد
افتراضي رد: ان بي سي فوت Vote
الانبي سي

كود:
              #region Vote System
                                
case 333012:
                                    {

                                        
dialog.Avatar(241);

                                        switch (
npcRequest.OptionID)
                                        {

                                            case 
0:
                                                {

                                                    
dialog.Text("Hey, " + client.Player.Name + "This Vote System if You Voteing Will Get 10 Mellion [Cps] & 2 VotePoints Can Vote Agin After 12 Hours");

                                                    
dialog.Text("Your VotePoints`s Count is :[ " + client.VotePoints + " ] .");

                                                    
dialog.Option("Yes, I Wanna Vote", 1);

                                                    
dialog.Option("ExchangePoint's", 2);

                                                    
dialog.Option("No thank you", 255);

                                                    
dialog.Send();

                                                    break;

                                                }

                                            case 
1:
                                                {

                                                    if (!
Kernel.VotePool.ContainsKey(client.Account.IP))
                                                    {

                                                        if (!
Kernel.VotePoolUid.ContainsKey(client.Player.UID))
                                                        {

                                                            
client.VotePoints += 2;

                                                           
//client.Player.ConquerPoints += 10000000;

                                                            
client.Voted = true;

                                                            
MrHassan.Database.VipTable.PlayersVot Vot = new MrHassan.Database.VipTable.PlayersVot.PlayersVot();

                                                            
Vot.AdressIp = client.Account.IP;

                                                            
Vot.Uid = client.Player.UID;

                                                            
Kernel.VotePool.Add(Vot.AdressIp, Vot);

                                                            
Kernel.VotePoolUid.Add(Vot.Uid, Vot);

                                                            
Database.EntityTable.SavePlayersVot(Vot);

                                                            
client.Send(new Message("http://www.xtremetop100.com/in.php?site=1132368885", System.Drawing.Color.Red, Network.GamePackets.Message.Website));

                                                        }

                                                        else
                                                        {

                                                            
dialog.Text("Sorry, But You Already Voted Come Back After 12 Hour.");

                                                            
dialog.Option("Oh, Sorry I Foget", 255);

                                                            
dialog.Send();

                                                        }

                                                    }

                                                    else
                                                    {

                                                        
dialog.Text("Sorry, But You  Already Voted Come Back After 12 Hour.");

                                                        
dialog.Option("Oh, Sorry I Foget", 255);

                                                        
dialog.Send();

                                                    }

                                                    break;



                                                }

                                            case 
2:
                                                {
                                                    
dialog.Text("Hello Player, I'm here to give you rewards for your votes !.");
                                                    
dialog.Option("About VotePoints", 15);//Done
                                                    
dialog.Option("Check my Points.", 20);//Done
                                                    
dialog.Option("SoulS[P8] (20 VotePoints)\n", 30);//Done
                                                    
dialog.Option("DeathConquer[Cup] -- 1 Days (20 VotePoints)\n", 3);//Done
                                                    
dialog.Option("GoldPrize[CUP] -- 1 Days (10 VotePoints)\n", 29);//Done
                                                    
dialog.Option("SavagePone 30 (10 VotePoints)", 5);//Done
                                                    
dialog.Option("VIP [7] Days 1 (10 VotePoints)", 6);//Done
                                                    
dialog.Option("VIP [8] Days 1 (20 VotePoints)", 8);//Done
                                                    
dialog.Option("ConquerPoints [100M] (5 VotePoints)", 9);//Done
                                                    
dialog.Send();
                                                    break;
                                                }
                                            case 
25:
                                            case 
3:
                                            case 
9:
                                            case 
5:
                                            case 
6:
                                            case 
8:
                                            case 
15:
                                            case 
20:
                                            case 
29:
                                            case 
30:
                                                if (
npcRequest.OptionID == 3)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(2100085, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 29)
                                                {
                                                    if (
client.Inventory.Count == 40)
                                                    {
                                                        
dialog.Text("Please make a free space in your inventory.");
                                                        
dialog.Option("okay", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(2100075, 0, 0, 0, 0, 0, 1, 1, true, 0, 0, 0, false);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don't have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 6)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 7, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 30)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.Inventory.Add(3004248, 0, 1);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 9)
                                                {
                                                    if (
client.VotePoints >= 5)
                                                    {
                                                        
client.VotePoints -= 5;
                                                        
client.Player.ConquerPoints += 100000000;
                                                        
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 5 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 8)
                                                {
                                                    if (
client.VotePoints >= 20)
                                                    {
                                                        
client.VotePoints -= 20;
                                                        
client.VIPDays.Insert(DateTime.Now, DateTime.Now.AddDays(1), 8, client.Player.VIPLevel, client);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 20 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                else if (
npcRequest.OptionID == 5)
                                                {
                                                    if (
client.VotePoints >= 10)
                                                    {
                                                        
client.VotePoints -= 10;
                                                        
client.Inventory.Add(3004181, 0, 30);
                                                    }
                                                    else
                                                    {
                                                        
dialog.Text("Sorry you don;t have 10 VotePoints !.");
                                                        
dialog.Option("oh, sorry", 255);
                                                        
dialog.Send();
                                                        break;
                                                    }
                                                }
                                                break;



                                        }

                                        break;

                                    }

                                
#endregion 

في كلاس


كود:
  public class VipVariables 

ضيف دا في اي حته


كود:
       public class PlayersVot
        
{
            public 
string AdressIp;
            public 
uint Uid;
        } 

في كلاس Kernel

ضيف


كود:
         public static Dictionary<string, PlayersVot> VotePool = new Dictionary<string, PlayersVot>();
        public static 
Dictionary<uint, PlayersVot> VotePoolUid = new Dictionary<uint, PlayersVot>(); 

في GameState

ضيف


كود:
         public uint VotePoints
        
{
            
get { return this["VotePoints"]; }
            
set
            
{
                
this["VotePoints"] = value;
            }
        } 

بالتوفيق <3
تسلم + انت محطتش كود save بس شكرا انا عملتو
شكرا ي كبير + لسه محلش بردو اللي بتكلم فيه ان بردو بستلم الأونلاين بوينت قبل م اعمل فوت في الموقع
عايز بقا كود انو ما اخدش الأونلاين بوينت غير بعد دقيقه البوينت تجيلي يعني اعمل فوت وبعد دقيقه الاقي البوينت وصلتني


العلامات المرجعية



الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1)
 

الانتقال السريع

المواضيع المتشابهه للموضوع: ان بي سي فوت Vote
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
System Vote الموضوع ممكن يكون نازل عند ناس بس انا منزله بفكره جديد شويه ادخل وهقولك zezonever تطوير سيرفرات كونكر 2 2019-11-08 09:49 PM
Vote salahsayed مشكلات السيرفيرات كونكر الشخصيه 1 2019-04-30 10:50 AM


الساعة الآن 12:53 AM