sistema de voto
2 participantes
Página 1 de 1
sistema de voto
- Código:
#region Vote By Profeesor Full
case 333012:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey, " + client.Entity.Name + " This is Vote System By Profeesor if You Vote You Will Get You Reward You Can Vote Per 12 Hours");
dialog.Option("Yes, I Wanna Vote", 1);
dialog.Option("No thank you", 255);
dialog.Send();
break;
}
case 1:
{
if (!Kernel.VotePool.ContainsKey(client.Account.IP))
{
if (!Kernel.VotePoolUid.ContainsKey(client.Entity.UID))
{
client.Entity.ConquerPoints += 500000;
Conquer_Online_Server.Professor.PlayersVot Vot = new Conquer_Online_Server.Professor.PlayersVot();
Vot.AdressIp = client.Account.IP;
Vot.Uid = client.Entity.UID;
Kernel.VotePool.Add(Vot.AdressIp, Vot);
Kernel.VotePoolUid.Add(Vot.Uid, Vot);
Database.EntityTable.SavePlayersVot(Vot);
client.Send(new Message("" + Database.rates.VoteUrl + "", System.Drawing.Color.Red, Network.GamePackets.Message.Website));
}
else
{
dialog.Text("Sorry, But You Already Vote");
dialog.Option("Oh,Sorry I Foget", 255);
dialog.Send();
}
else
{
dialog.Text("Sorry, But You Already Vote");
dialog.Option("Oh,Sorry I Foget", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion
Tópicos semelhantes
» Sistema de Vip com dias para acabar
» [Venda] Sistema dia e noite + clima
» Sistema de Prêmios por hora
» Npc que vende P6 e P7 [Sistema de Booth]
» Como arrumar as Both(Sistema de Shop)
» [Venda] Sistema dia e noite + clima
» Sistema de Prêmios por hora
» Npc que vende P6 e P7 [Sistema de Booth]
» Como arrumar as Both(Sistema de Shop)
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|