[Ajuda] Sistema de ban
#1

Pessoal eu estava fazendo um sistema de ban atй ai tudo bem, mais sу que na hora de checar se o player ta banido estou com problemas, demora pra aparecer a mensagem de ban e a data e as horas aparecem erradas o que pode ser? vou deixar o cуdigo aqui em baixo.

pawn Код:
new PlayerBan[64];
    GetPlayerIp(playerid,PlayerBan,sizeof(PlayerBan));
    format(PlayerBan, 64,"Bans/%s.ini",PlayerBan);
    if(DOF2_FileExists(PlayerBan))
    {
        new Nome[52], admin[52], motivo[52], data[52], horas[52];
        format(Nome,52,"Seu Nick '%s' esta banido!", DOF2_GetString(PlayerBan,"Nome"));
        SendClientMessage(playerid, COLOR_GOLD, Nome);
        format(admin,52,"Admin que te baniu '%s'", DOF2_GetString(PlayerBan,"Admin"));
        SendClientMessage(playerid, COLOR_GOLD, admin);
        format(motivo,52,"Motivo '%s'", DOF2_GetString(PlayerBan,"Motivo"));
        SendClientMessage(playerid, COLOR_GOLD, motivo);
        format(data,52,"Data do ban '%02d/%02d/%02d'", DOF2_GetString(PlayerBan,"Data"));
        SendClientMessage(playerid, COLOR_GOLD, data);
        format(horas,52,"Horas do ban '%02d:%02d:%02d'", DOF2_GetString(PlayerBan,"Horas"));
        SendClientMessage(playerid, COLOR_GOLD, horas);
        Kick(playerid);
    }
Reply
#2

Verifica se a hora do host ou a hora do seu pc tб correta.
Reply
#3

ta correta mais mesmo assim nгo geta a hora fica uns nъmeros estranhos .
Olha como fica Olha aqui
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)