04.10.2012, 22:52
pawn Код:
new PlayerBan[128];
GetPlayerIp(playerid,PlayerBan,sizeof(PlayerBan));
format(PlayerBan, 128,"Bans/%s.ini",PlayerBan);
if(DOF2_FileExists(PlayerBan))
{
new string0[128],string1[128],string2[128],string3[128],string4[128];
format(string0,128,"Seu Nick '%s' esta banido!\n", DOF2_GetInt(PlayerBan,"Nome"));
strcat(PlayerBan,string0);
format(string1,128,"Admin que te baniu '%s'\n", DOF2_GetInt(PlayerBan,"Admin"));
strcat(PlayerBan,string1);
format(string2,128,"Motivo '%s'\n", DOF2_GetInt(PlayerBan,"Motivo"));
strcat(PlayerBan,string2);
format(string3,128,"Data do ban '%d'\n", DOF2_GetInt(PlayerBan,"Data"));
strcat(PlayerBan,string3);
format(string4,128,"Hora do ban '%02d'", DOF2_GetInt(PlayerBan,"Horas"));
strcat(PlayerBan,string4);
ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Banido",PlayerBan , "Ok", "");
Kick(playerid);
}