boa noite gente , estou tendo um problema uma dificuldade com um sistema de moedas cash que os players possam comprar vips transferir tudo mais por via de moedas cash , meu problema e que quando usa o menu de moedas ele abre as opзхes que o player desejar , so que quando vc clica nas opзхes ele abre a mensagem que vc nao tem moeda suficiente mesmo tendo moeda e nao consigo achar o problema no sistema , peзo ajuda de vocкs se possнvel e um obrigado desde jб abraзos
Код:
#define DIALOG_MOEDAS 5000
pMoedas,
{
if(response == 1)
{
//>>>>>>>>>>>
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
return 1;
}
if(dialogid == DIALOG_MOEDAS+1)
{
if(response == 1)
{
if(listitem == 0)
{
if(PlayerInfo[playerid][pMoedas] < 100)
{
format(string,sizeof(string),"{FFFFFF}Tem certeza que deseja comprar um VIP com seus Creditos em moedas ?");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+100, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Confimar", "Cancelar");
}
else
{
format(string,sizeof(string),"{FFFFFF}Vocк nгo tem moedas o suficiente para comprar um VIP");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1000, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Fechar", "");
}
}
if(listitem == 1)
{
if(PlayerInfo[playerid][pMoedas] < 2000)
{
format(string,sizeof(string),"{FFFFFF}Tem certeza que deseja comprar um Premium com seus Creditos em moedas ?");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+200, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Confimar", "Cancelar");
}
else
{
format(string,sizeof(string),"{FFFFFF}Vocк nгo tem moedas o suficiente para comprar um Premium");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1000, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Fechar", "");
}
}
if(listitem == 2)
{
if(PlayerInfo[playerid][pMoedas] < 5000)
{
format(string,sizeof(string),"{FFFFFF}Tem certeza que deseja comprar um Master com seus Creditos em moedas ?");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+300, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Confimar", "Cancelar");
}
else
{
format(string,sizeof(string),"{FFFFFF}Vocк nгo tem moedas o suficiente para comprar um Master");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1000, DIALOG_STYLE_MSGBOX, "Aviso - moedas", string, "Fechar", "");
}
}
if(listitem == 3)
{
ShowPlayerDialog(playerid, DIALOG_MOEDAS+400, DIALOG_STYLE_INPUT, "Transferencia - moedas", "Digite o ID da pessoa que quer transferir as moedas!", "Ok", "Voltar");
}
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
return 1;
}
if(dialogid == DIALOG_MOEDAS+400)
{
if(response == 1)
{
if(strval(inputtext) == INVALID_PLAYER_ID)
{
PlayerMensagem(playerid,COLOR_GREY,"O jogador nгo estб online !");
ShowPlayerDialog(playerid, DIALOG_MOEDAS+400, DIALOG_STYLE_INPUT, "Transferencia - moedas", "Digite o ID da pessoa que quer transferir as moedas!", "Ok", "Voltar");
return 1;
}
if(!IsNumero(inputtext))
{
ShowPlayerDialog(playerid, DIALOG_MOEDAS+400, DIALOG_STYLE_INPUT, "Transferencia - moedas", "Digite o ID da pessoa que quer transferir as moedas!", "Ok", "Voltar");
PlayerMensagem(playerid,COLOR_GREY,"Use o ID,nгo o nome - Se nгo sabe o id use /id [nome/parte do nome]");
return 1;
}
MoedaTransID[playerid] = strval(inputtext);
format(string,sizeof(string),"Pronto! Agora digite a quantia de moedas que deseja transferir para o player...\n\nOBS: A Quantia deve ser acima de 1000 MV",PlayerInfo[playerid][pConta],PlayerName(chosenpid));
ShowPlayerDialog(playerid,DIALOG_MOEDAS+450,DIALOG_STYLE_INPUT,"Transferencia - moedas",string,"Transferir","Voltar");
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
}
if(dialogid == DIALOG_MOEDAS+450)
{
if(response == 1)
{
if(strval(inputtext) < 1000)
{
PlayerMensagem(playerid,COLOR_GREY,"A Quantia de Moedas deve ser maior que 1000!");
format(string,sizeof(string),"Pronto! Agora digite a quantia de moedas que deseja transferir para o player...\n\nOBS: A Quantia deve ser acima de 1000 MV",PlayerInfo[playerid][pConta],PlayerName(chosenpid));
ShowPlayerDialog(playerid,DIALOG_MOEDAS+450,DIALOG_STYLE_INPUT,"Transferencia - moedas",string,"Transferir","Voltar");
return 1;
}
if(!IsNumero(inputtext))
{
PlayerMensagem(playerid,COLOR_GREY,"Use apenas numeros para digitar a quantia de Moedas");
format(string,sizeof(string),"Pronto! Agora digite a quantia de moedas que deseja transferir para o player...\n\nOBS: A Quantia deve ser acima de 1000 MV",PlayerInfo[playerid][pConta],PlayerName(chosenpid));
ShowPlayerDialog(playerid,DIALOG_MOEDAS+450,DIALOG_STYLE_INPUT,"Transferencia - moedas",string,"Transferir","Voltar");
return 1;
}
PlayerInfo[playerid][pMoedas] -= strval(inputtext);
PlayerInfo[MoedaTransID[playerid]][pMoedas] += strval(inputtext);
format(string, sizeof string, "Vocк transferiu %d moedas para %s, Nгo serб possivel pegar as moedas de volta... Apenas com autorizaзгo do Player!", strval(inputtext), PlayerName(MoedaTransID[playerid]));
PlayerMensagem(playerid, COLOR_DBLUE, string);
format(string, sizeof string, "Vocк ganhou %d moedas de %s, para utilizalos digite /moedasverdes!", PlayerInfo[MoedaTransID[playerid]][pMoedas], PlayerName(playerid));
PlayerMensagem(MoedaTransID[playerid], COLOR_DBLUE, string);
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
}
new levelvip = 1;
getdate(year, month, day);
if(dialogid == DIALOG_MOEDAS+100)
{
if(response == 1)
{
PlayerInfo[playerid][pVIP] = 1;
GivePlayerMoney(playerid, 20000000);
PlayerInfo[playerid][pVIP] += 2;
ScoreLevel(playerid);
new var033 = 0;
for(new i = 0; i < sizeof(VipInfo); i++)
{
if(strcmp(PlayerName(playerid),VipInfo[i][vNick],true)==0)
{
VipInfo[i][vTipo] = 1;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
var033 = 1;
break;
}
else if(var033 == 0)
{
if(strcmp("Ninguem",VipInfo[i][vNick],true)==0)
{
strmid(VipInfo[i][vNick], PlayerName(playerid), 0, strlen(PlayerName(playerid)), 255);
VipInfo[i][vTipo] = 1;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
break;
}
}
}
format(string, sizeof string, "Vocк comprou 1 mes de Jogador VIP Valido atй:(%d/%d/%d), com esse VIP vocк tera muitos beneficios!", VipInfo[i][vDiaA], VipInfo[i][vMesA], VipInfo[i][vAnoA]);
PlayerMensagem(playerid, COLOR_DBLUE, string);
}
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
return 1;
}
if(dialogid == DIALOG_MOEDAS+200)
{
if(response == 1)
{
PlayerInfo[playerid][pVIP] = 2;
GivePlayerMoney(playerid, 15000000);
PlayerInfo[playerid][pVIP] += 1;
ScoreLevel(playerid);
new var033 = 0;
for(new i = 0; i < sizeof(VipInfo); i++)
{
if(strcmp(PlayerName(playerid),VipInfo[i][vNick],true)==0)
{
VipInfo[i][vTipo] = 2;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
var033 = 1;
break;
}
else if(var033 == 0)
{
if(strcmp("Ninguem",VipInfo[i][vNick],true)==0)
{
strmid(VipInfo[i][vNick], PlayerName(playerid), 0, strlen(PlayerName(playerid)), 255);
VipInfo[i][vTipo] = 2;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
break;
}
}
}
format(string, sizeof string, "Vocк comprou 1 mes de Jogador VIP Valido atй:(%d/%d/%d), com esse VIP vocк tera muitos beneficios!", VipInfo[i][vDiaA], VipInfo[i][vMesA], VipInfo[i][vAnoA]);
PlayerMensagem(playerid, COLOR_DBLUE, string);
}
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
return 1;
}
if(dialogid == DIALOG_MOEDAS+300)
{
if(response == 1)
{
PlayerInfo[playerid][pVIP] = 3;
GivePlayerMoney(playerid, 30000000);
PlayerInfo[playerid][pVIP] += 4;
ScoreLevel(playerid);
new var033 = 0;
for(new i = 0; i < sizeof(VipInfo); i++)
{
if(strcmp(PlayerName(playerid),VipInfo[i][vNick],true)==0)
{
VipInfo[i][vTipo] = 3;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
var033 = 1;
break;
}
else if(var033 == 0)
{
if(strcmp("Ninguem",VipInfo[i][vNick],true)==0)
{
strmid(VipInfo[i][vNick], PlayerName(playerid), 0, strlen(PlayerName(playerid)), 255);
VipInfo[i][vTipo] = 3;
VipInfo[i][vDia] = day;
VipInfo[i][vMes] = month;
VipInfo[i][vAno] = year;
if(month+levelvip > 12)
{
if(month+levelvip >= 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
if((month+levelvip)-12 == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
else if((month+levelvip)-12 == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = (month+levelvip)-12;
VipInfo[i][vAnoA] = year+1;
}
}
}
}
}
if(month+levelvip < 13)
{
if(levelvip > 0)
{
VipInfo[i][vDiaA] = day;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
if(month+levelvip == 2)
{
if(day > 28)
{
VipInfo[i][vDiaA] = 28;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 4)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 6)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 9)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
else if(month+levelvip == 11)
{
if(day > 30)
{
VipInfo[i][vDiaA] = 30;
VipInfo[i][vMesA] = month+levelvip;
VipInfo[i][vAnoA] = year;
}
}
}
}
SaveVip();
break;
}
}
}
format(string, sizeof string, "Vocк comprou 1 mes de Jogador VIP Valido atй:(%d/%d/%d), com esse VIP vocк tera muitos beneficios!", VipInfo[i][vDiaA], VipInfo[i][vMesA], VipInfo[i][vAnoA]);
PlayerMensagem(playerid, COLOR_DBLUE, string);
}
}
if(response == 0)
{
//<<<<<<<<<<<<
new moedaa[800];
format(moedaa, sizeof(moedaa),"{FFFFFF}Menu - {00d900}moedas{FFFFFF}[%d]",PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS+1, DIALOG_STYLE_LIST, moedaa, "{FFFFFF}Comprar [VIP - 1000 ]\nComprar [Premium - 2000 ]\nComprar [Master-VIP - 5000 ]\nTransferir moedas", "Selecionar", "Cancelar");
}
return 1;
}
/////////////////////////////////////////////////////////
if(strcmp(cmd, "/darmoedas", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1337)
{
PlayerMensagem(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para usar esse comando.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
PlayerMensagem(playerid, COLOR_GRAD2, "USE: /darmoedas [ID] [QUANTIA]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
PlayerMensagem(playerid, COLOR_GRAD2, "USE: /darmoedas [ID] [QUANTIA]");
return 1;
}
level = strval(tmp);
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
format(string, sizeof(string), " Vocк recebeu %d moedas do administrador %s, com isso vocк podera comprar VIP/Super-VIP/VIP-Master.", level, sendername);
PlayerMensagem(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Vocк deu %d moedas para %s",level, giveplayer);
PlayerMensagem(playerid, COLOR_LIGHTBLUE, string);
printf("Adm.Cmd: %s deu para %s %d moedas.", sendername, giveplayer, level);
getdate(year, month, day);
gettime(hour,minute,second);
format(string, sizeof(string), "%s deu %d moedas para %s [%d/%d/%d] бs [%d:%d:%d].", sendername, level, giveplayer, day,
month, year, hour, minute, second);
CmdAdminsLog(string);
PlayerInfo[para1][pMoedas] = level;
}
}
}
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////
if(strcmp(cmd, "/minhasmoedas", true) == 0 || strcmp(cmd, "/moedas", true) == 0)
{
if(IsPlayerConnected(playerid) && PlayerInfo[playerid][pMoedas] >= 1)
{
format(string,sizeof(string),"{FFFFFF}Olб %s!\nVocк tem %d moedas em sua conta e com isso vocк\npodera comprar Vip/Super/Master e tambem transferir moedas\npara varios players contanto que vocк tenha mais de 1000 moedas...\n\n\nOBS: Se caso encontra algum error contate nosso forum!",PlayerName(playerid), PlayerInfo[playerid][pMoedas]);
ShowPlayerDialog(playerid, DIALOG_MOEDAS, DIALOG_STYLE_LIST, " ", string, "Cancelar", "Continuar");
}
else
{
PlayerMensagem(playerid, COLOR_GRAD1, "Vocк nгo tem moedas para acessar o menu.");
return 1;
}
return 1;
}