04.07.2013, 15:47
Tenta,faz tempo que nгo mexo com dini,mas creio que esteja certo.
pawn Код:
if(strcmp(cmd,"/infoban",true)==0)
{
new conta[60], Adm[21], MotivoBan[100], DataBan[25], HoraBan[22];
if(PlayerInfo[playerid][pAdmin] < 1337)
return SendClientMessage(playerid, COR_CINZA1, "Vocк nгo tem permissгo para usar esse comando!");
if(sscanf(params, "s[21]", conta))
return SendClientMessage(playerid, COR_CINZA2, "Use: /infoban [Nome_Conta] * use Maiusculas e Minusculas *]");
format(String, 50, "Banidos/%s.ini", conta);
if(fexist(String))
{
Adm[21] = Dini_Get(String, "Admin");
MotivoBan[100] = Dini_Get(String, "Motivo");
DataBan[25] = Dini_Get(String, "Data");
HoraBan[22] = Dini_Get(String, "Hora");
format(String, 60, "|| -- Informaзхes do Banimento do "VERMELHO"%s -- ||", conta);
SendClientMessage(playerid, COR_AMARELO2, String);
format(String, 40, "Admin que Baniu: "VERDE"%s ", Adm);
SendClientMessage(playerid, COR_AMARELO, String);
format(String, 128, "Motivo do Ban: "VERDE"%s ", MotivoBan);
SendClientMessage(playerid, COR_AMARELO2, String);
format(String, 40, "Data do Ban: "VERDE"%s ", DataBan);
SendClientMessage(playerid, COR_AMARELO, String);
format(String, 40, "Hora do Ban: "VERDE"%s ", HoraBan);
SendClientMessage(playerid, COR_AMARELO2, String);
}
else
{
SendClientMessage(playerid, COR_CINZA3, "Essa conta nгo estб banida ou nгo existe!. ");
}
return 1;
}