15.04.2012, 14:13
@edit
Resolvido Sistema de Ban Bugado.
Resolvido Sistema de Ban Bugado.
if (APlayerData[playerid][BanTime] < gettime())
format(don, sizeof(don),"Olб!\n\n\nNick: {AA3333}%s{FFFFFF}\nStatus da Conta: {00D900}Registrado{FFFFFF}\n\nDigite Sua Senha:", Name);
ShowPlayerDialog(playerid, DialogLogin, 3,"Transportando o Mundo",don, "Logar", "Cancelar");
if (APlayerData[playerid][BanTime] < gettime())
{
format(don, sizeof(don),"Olб!\n\n\nNick: {AA3333}%s{FFFFFF}\nStatus da Conta: {00D900}Registrado{FFFFFF}\n\nDigite Sua Senha:", Name);
ShowPlayerDialog(playerid, DialogLogin, 3,"Transportando o Mundo",don, "Logar", "Cancelar");
}
if (PlayerFile_Load(playerid) == 1)
{
if (APlayerData[playerid][BanTime] < gettime())
{
format(don, sizeof(don),"Olб!\n\n\nNick: {AA3333}%s{FFFFFF}\nStatus da Conta: {00D900}Registrado{FFFFFF}\n\nDigite Sua Senha:", Name);
ShowPlayerDialog(playerid, DialogLogin, 3,"Transportando o Mundo",don, "Logar", "Cancelar");
}
else//linha erro
{
ShowRemainingBanTime(playerid);
Kick(playerid);
}
}
else
ShowPlayerDialog(playerid, DialogRegister, 3, TXT_DialogRegisterTitle, TXT_DialogRegisterMsg, TXT_DialogRegisterButton1, TXT_DialogButtonCancel);
if (APlayerData[playerid][BanTime] < gettime())
{
ShowRemainingBanTime(playerid);
Kick(playerid);
}