14.05.2013, 02:54
OnPlayerConnect...
PHP код:
new string3[37], cStr[300];
format(string3, sizeof string3, "Banidos/%s.ini", Nome(playerid));
if(fexist(string3)
{
if(DOF2_GetInt(string3, "Dias") < gettime())
{
DOF2_RemoveFile(string3);
SendClientMessage(playerid, -1, "[INFO]: Seu Banimento Temporario Acabou!");
}
else
{
format(cStr, sizeof cStr, "{FFFFFF}Admin que lhe baniu: {FF0000}%s\n{FFFFFF}Motivo: {FF0000}%s\n{FFFFFF}Dias: {FF0000}%d\n{FFFFFF}Restam: {FF0000}%d {FFFFFF}para ser desbanido.", DOF2_GetString(string3, "Admin"), DOF2_GetString(string3, "Motivo"), DOF2_GetInt(string3, "Dias"), Convert(DOF2_GetInt(string3, "Dias")-gettime()));
ShowPlayerDialog(playerid, 1437, DIALOG_STYLE_MSGBOX, "{FF0000}» {FFFFFF}VOCК ESTБ BANIDO DESTE SERVIDOR {FF0000}«", cStr, "Fechar","");
return true;
}
return true;
}