11.06.2015, 01:20
eae galera estou com um problema no info ban , ele nao esta aparecendo quando o player banido entra no servidor , so aparece a seguinte mensagem server closed the connection e nada mas
Код:
if(strcmp(cmd, "/ban", true) == 0 || strcmp(cmd, "/banir", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { PlayerMensagem(playerid, COLOR_GRAD2, "USE: /banir [id] [motivo]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[85]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { PlayerMensagem(playerid, COLOR_GRAD2, "USE: /banir [id] [motivo]"); return 1; } getdate(year, month, day); if (PlayerInfo[giveplayerid][pAdmin] == 5002) { format(string, sizeof(string), "Adm.Cmd: %s foi banido pelo BOOT, Motivo: Nгo tente mais Kickar meu chefe!", sendername); PlayerMensagemAll(COLOR_LIGHTRED, string); BanimentosLog(string); Banir(playerid, "Nгo tente mais banir meu chefe!", sendername, 0); format(string, 128, "http://translate.******.com/translate_tts?tl=pt&ie=UTF-8&q=Nгo tente mais banir meu chefe!", result); PlayAudioStreamForPlayer(playerid, string); return 1; } if(AdminTrabalhando[playerid] >= 0) { pban[playerid] += 1; if(pban[playerid] >= 10) { Banir(playerid, "Banindo Geral", "BOOT", 0); return 1; } format(string, sizeof(string), "Adm.Cmd: %s foi banido pelo administrador %s, Motivo: %s (%d-%d-%d)", giveplayer, sendername, (result),day,month,year); BanimentosLog(string); format(string, sizeof(string), "Adm.Cmd: %s foi banido pelo administrador %s, Motivo: %s", giveplayer, sendername, (result)); PlayerMensagemAll(COLOR_LIGHTRED, string); format(string, 128, "http://translate.******.com/translate_tts?tl=pt&ie=UTF-8&q=%s", result); PlayAudioStreamForPlayer(giveplayerid, string); } Banir(giveplayerid, result, sendername, 0); return 1; } }//not connected } else { PlayerMensagem(playerid, COLOR_GRAD1, " Esse nгo й um jogador ativo."); } } return 1; } public CheckBanimento(playerid) { new string[999]; new string3[128]; new string4[128]; new ip[16]; getdate(year, month, day); GetPlayerIp(playerid, ip, sizeof ip); format(string4, sizeof(string4), "IPsBanidos/%s.ini", ip); format(string3, sizeof(string3), "Banidos/%s.ini", PlayerName(playerid)); if(fexist(string3)) { strmid(BanInfo[playerid][pMotivo], dini_Get(string3,"Motivo"), 0, strlen(dini_Get(string3,"Motivo")), 255); strmid(BanInfo[playerid][pAdmBan], dini_Get(string3,"Admin"), 0, strlen(dini_Get(string3,"Admin")), 255); strmid(BanInfo[playerid][pHora], dini_Get(string3,"Hora"), 0, strlen(dini_Get(string3,"Hora")), 255); strmid(BanInfo[playerid][pIP], dini_Get(string3,"IP"), 0, strlen(dini_Get(string3,"IP")), 255); strmid(BanInfo[playerid][pNick], dini_Get(string3,"Nick"), 0, strlen(dini_Get(string3,"Nick")), 255); BanInfo[playerid][pDia] = dini_Int(string3,"Dia"); BanInfo[playerid][pMes] = dini_Int(string3,"Mes"); BanInfo[playerid][pAno] = dini_Int(string3,"Ano"); BanInfo[playerid][pDesban] = dini_Int(string3,"Desban"); if(BanInfo[playerid][pDesban] == 0) { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}Nunca\n \n{FFFFFF}Se vocк acha que e um BUG ou ERROR contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDesban]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } else if(BanInfo[playerid][pDesban] >= 1) { if(BanInfo[playerid][pDesban] >= 1) { if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 29 && BanInfo[playerid][pMes] == 2) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 28 && BanInfo[playerid][pMes] == 2) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-28 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-28, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 4 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 6 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 9 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 11) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 4 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 6 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 9 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 11) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-30 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-30, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 1 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 3 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 5 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 7 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 8 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 10) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 1 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 3 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 5 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 7 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 8 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 10) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 12) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 12) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31 && month >= BanInfo[playerid][pMes]-11 && year == BanInfo[playerid][pAno]+1) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31, BanInfo[playerid][pMes]-11, BanInfo[playerid][pAno]+1, BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } } } new stri[64], tmp[20], tmp2[20]; format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip); getdate(Ano, Mes, Dia); format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano); gettime(Hora, Minuto, Segundo); format(tmp2, 20, "%d:%d:%d", Hora, Minuto, Segundo); if(dini_Exists(stri)) { Kick(playerid); } else { dini_Create(stri); dini_Set(stri,"Motivo",BanInfo[playerid][pMotivo]); dini_Set(stri,"Admin",BanInfo[playerid][pAdmBan]); dini_IntSet(stri,"Dia",BanInfo[playerid][pDia]); dini_IntSet(stri,"Mes",BanInfo[playerid][pMes]); dini_IntSet(stri,"Ano",BanInfo[playerid][pAno]); dini_Set(stri,"Hora",BanInfo[playerid][pHora]); dini_Set(stri,"Nick",PlayerName(playerid)); dini_IntSet(stri,"Desban",BanInfo[playerid][pDesban]); Kick(playerid); } } format(string4, sizeof(string4), "Banidos/%s.ini", PlayerName(playerid)); format(string3, sizeof(string3), "IPsBanidos/%s.ini", ip); if(fexist(string3)) { strmid(BanInfo[playerid][pMotivo], dini_Get(string3,"Motivo"), 0, strlen(dini_Get(string3,"Motivo")), 255); strmid(BanInfo[playerid][pAdmBan], dini_Get(string3,"Admin"), 0, strlen(dini_Get(string3,"Admin")), 255); strmid(BanInfo[playerid][pHora], dini_Get(string3,"Hora"), 0, strlen(dini_Get(string3,"Hora")), 255); strmid(BanInfo[playerid][pIP], dini_Get(string3,"IP"), 0, strlen(dini_Get(string3,"IP")), 255); strmid(BanInfo[playerid][pNick], dini_Get(string3,"Nick"), 0, strlen(dini_Get(string3,"Nick")), 255); BanInfo[playerid][pDia] = dini_Int(string3,"Dia"); BanInfo[playerid][pMes] = dini_Int(string3,"Mes"); BanInfo[playerid][pAno] = dini_Int(string3,"Ano"); BanInfo[playerid][pDesban] = dini_Int(string3,"Desban"); if(BanInfo[playerid][pDesban] == 0) { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}Nunca\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDesban]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } else if(BanInfo[playerid][pDesban] >= 1) { if(BanInfo[playerid][pDesban] >= 1) { if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 29 && BanInfo[playerid][pMes] == 2) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 28 && BanInfo[playerid][pMes] == 2) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-28 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-28, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 4 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 6 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 9 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 31 && BanInfo[playerid][pMes] == 11) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 4 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 6 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 9 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 30 && BanInfo[playerid][pMes] == 11) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-30 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-30, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 1 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 3 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 5 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 7 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 8 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 10) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 1 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 3 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 5 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 7 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 8 || BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 10) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31 && month >= BanInfo[playerid][pMes]+1 && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31, BanInfo[playerid][pMes]+1, BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] < 32 && BanInfo[playerid][pMes] == 12) { if(day >= BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] && month >= BanInfo[playerid][pMes] && year == BanInfo[playerid][pAno]) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], BanInfo[playerid][pDia]+BanInfo[playerid][pDesban], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } else if(BanInfo[playerid][pDia]+BanInfo[playerid][pDesban] > 31 && BanInfo[playerid][pMes] == 12) { if(day >= (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31 && month >= BanInfo[playerid][pMes]-11 && year >= BanInfo[playerid][pAno]+1) { dini_Remove(string3); dini_Remove(string4); return 1; } else { format(string, sizeof(string), "{FFFFFF}********************** {ff4800}Informaзхes do Banimento {FFFFFF}**********************\n \n{ff4800}IP: {FFFFFF}%s\n{ff4800}Nick: {FFFFFF}%s\n{ff4800}Admin: {FFFFFF}%s\n{ff4800}Motivo: {FFFFFF}%s\n{ff4800}Dia do Banimento: {FFFFFF}%d/%d/%d as %s\n{ff4800}Dia do Desbanimento: {FFFFFF}%d/%d/%d as %s\n \n{FFFFFF}Se vocк acha que e um BUG ou Error contate o forum!\n\n********************** {6FB7FF}brnewgeneration.forumeiros.com {FFFFFF}**********************" , BanInfo[playerid][pIP], BanInfo[playerid][pNick], BanInfo[playerid][pAdmBan], BanInfo[playerid][pMotivo], BanInfo[playerid][pDia], BanInfo[playerid][pMes], BanInfo[playerid][pAno], BanInfo[playerid][pHora], (BanInfo[playerid][pDia]+BanInfo[playerid][pDesban])-31, BanInfo[playerid][pMes]-11, BanInfo[playerid][pAno]+1, BanInfo[playerid][pHora]); ShowPlayerDialog(playerid,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"Brasil New Generation",string,"Fechar",""); Kick(playerid); } } } } } return 0; }