31/12/2021 12:36
(Esta mensagem foi modificada pela última vez a: 07/01/2022 14:58 por xbruno1000x.)
Opa eu estou com um poblema a dias tentei arrumar tanto que acabei deixando de lado e hoje tenho que arruma este poblema, mas bom eu fiz um sistema de verificar pessoas banidas e da uma tela com as informações do ban logo dps da um kick no player, mas quando um player banido loga no serve o serve cai e eu não sei o motivo irei mostra a baixo uma verificação de banimento que eu fiz junto com uma de ban por ip tbm.
Fuibanido(playerid)
{
new String[200];
format(String, sizeof(String), "Banidos/%s.ini", PegarNome(playerid));
if(DOF2_FileExists(String))
{
new DialogStatus[1800];
format(gstring, sizeof(gstring), "Conta: {36FF56}%s\n", PlayerName(playerid));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Admin: {36FF56}%s\n", DOF2_GetString(String, "Admin"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Motivo: {36FF56}%s\n", DOF2_GetString(String, "Motivo"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Dia: {36FF56}%s\n{FFFFFF}Hora: {36FF56}%s\n\n", DOF2_GetString(String, "Data"),DOF2_GetString(String, "Horario"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Para revisao de ban acesse nosso discord: https://discord.gg/f3Zxsss\n");
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Atencao: Voce so sera desbanido caso for inocente !\n");
strcat(DialogStatus, gstring);
ShowPlayerDialog(playerid, 9399, DIALOG_STYLE_MSGBOX, "{9FF4FF}|_-_-_-_-_-_-_|{A800FF} Sua Conta Esta Banido Do Brasil Joga City {9FF4FF}|_-_-_-_-_-_-_|{FFFFFF}", DialogStatus, "OK", "");
SetTimerEx("Banzinn", 980, false, "i", playerid);
return true;
}
format(String, sizeof(String), "IPsBanidos/%s.ini", PegarIP(playerid));
if(DOF2_FileExists(String))
{
new DialogStatus[1800];
format(gstring, sizeof(gstring), "IP: {36FF56}%s\n", PegarIP(playerid));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Admin: {36FF56}%s\n", DOF2_GetString(String, "Admin"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Motivo: {36FF56}%s\n", DOF2_GetString(String, "Motivo"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Dia: {36FF56}%s\n{FFFFFF}Hora: {36FF56}%s\n\n", DOF2_GetString(String, "Data"),DOF2_GetString(String, "Horario"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Para revisao de ban acesse nosso discord: https://discord.gg/f3Zxsss\n");
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Atencao: Voce so sera desbanido caso for inocente !\n");
strcat(DialogStatus, gstring);
ShowPlayerDialog(playerid, 9310, DIALOG_STYLE_MSGBOX, "{9FF4FF}|_-_-_-_-_-_-_|{A800FF} Seu IP Esta Banido Do Brasil Joga City {9FF4FF}|_-_-_-_-_-_-_|{FFFFFF}", DialogStatus, "OK", "");
SetTimerEx("Banzinn", 980, false, "i", playerid);
return true;
}
return true;
}
Fuibanido(playerid)
{
new String[200];
format(String, sizeof(String), "Banidos/%s.ini", PegarNome(playerid));
if(DOF2_FileExists(String))
{
new DialogStatus[1800];
format(gstring, sizeof(gstring), "Conta: {36FF56}%s\n", PlayerName(playerid));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Admin: {36FF56}%s\n", DOF2_GetString(String, "Admin"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Motivo: {36FF56}%s\n", DOF2_GetString(String, "Motivo"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Dia: {36FF56}%s\n{FFFFFF}Hora: {36FF56}%s\n\n", DOF2_GetString(String, "Data"),DOF2_GetString(String, "Horario"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Para revisao de ban acesse nosso discord: https://discord.gg/f3Zxsss\n");
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Atencao: Voce so sera desbanido caso for inocente !\n");
strcat(DialogStatus, gstring);
ShowPlayerDialog(playerid, 9399, DIALOG_STYLE_MSGBOX, "{9FF4FF}|_-_-_-_-_-_-_|{A800FF} Sua Conta Esta Banido Do Brasil Joga City {9FF4FF}|_-_-_-_-_-_-_|{FFFFFF}", DialogStatus, "OK", "");
SetTimerEx("Banzinn", 980, false, "i", playerid);
return true;
}
format(String, sizeof(String), "IPsBanidos/%s.ini", PegarIP(playerid));
if(DOF2_FileExists(String))
{
new DialogStatus[1800];
format(gstring, sizeof(gstring), "IP: {36FF56}%s\n", PegarIP(playerid));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Admin: {36FF56}%s\n", DOF2_GetString(String, "Admin"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Motivo: {36FF56}%s\n", DOF2_GetString(String, "Motivo"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{FFFFFF}Dia: {36FF56}%s\n{FFFFFF}Hora: {36FF56}%s\n\n", DOF2_GetString(String, "Data"),DOF2_GetString(String, "Horario"));
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Para revisao de ban acesse nosso discord: https://discord.gg/f3Zxsss\n");
strcat(DialogStatus, gstring);
format(gstring, sizeof(gstring), "{36FF56}Atencao: Voce so sera desbanido caso for inocente !\n");
strcat(DialogStatus, gstring);
ShowPlayerDialog(playerid, 9310, DIALOG_STYLE_MSGBOX, "{9FF4FF}|_-_-_-_-_-_-_|{A800FF} Seu IP Esta Banido Do Brasil Joga City {9FF4FF}|_-_-_-_-_-_-_|{FFFFFF}", DialogStatus, "OK", "");
SetTimerEx("Banzinn", 980, false, "i", playerid);
return true;
}
return true;
}