[AJUDA] Log Ban!
#10

fico interessante com format drakin ^^

mais eu fis com strmid ...

pawn Код:
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    new file[128], string1[128], string2[128], string3[128], string4[128];
    format(file,sizeof(file),"/sbadmin/Ban/%s.ini",name);
    if(fexist(file))
    {
        new Banido1[128], Banidor1[128], Motivo1[128], Dia1, Mes1, Ano1;
        strmid(Banido1, dini_Get(file,"Banido"), 0, strlen(dini_Get(file,"Banido")), 128);
        strmid(Banidor1, dini_Get(file,"Banidor"), 0, strlen(dini_Get(file,"Banidor")), 128);
        strmid(Motivo1, dini_Get(file,"Motivo"), 0, strlen(dini_Get(file,"Motivo")), 128);
        Dia1 = dini_Int(file,"Dia");
        Mes1 = dini_Int(file,"Mкs");
        Ano1 = dini_Int(file,"Ano");
        format(string1, sizeof(string1), "Nick: %s Foi Banido do Servidor)",Banido1);
        format(string2, sizeof(string2), "Por: %s)",Banidor1);
        format(string3, sizeof(string2), "Motivo: %s)",Motivo1);
        format(string4, sizeof(string2), "Data: %d/%d/%d)",Dia1, Mes1, Ano1);
        SendClientMessage(playerid,0xDEEE20FF,"___________________________________________________________");
        SendClientMessage(playerid,0xDEEE20FF,string1);
        SendClientMessage(playerid,0xDEEE20FF,string2);
        SendClientMessage(playerid,0xDEEE20FF,string3);
        SendClientMessage(playerid,0xDEEE20FF,string4);
        SendClientMessage(playerid,0xDEEE20FF,"___________________________________________________________");
        Kick(playerid);
    }
Reply


Messages In This Thread
-- RESOLVIDO POR DRAKON E PODEROSO CHEFГO -- - by Kasura - 15.11.2010, 20:52
Re: [AJUDA] Log Ban! - by []Fabricio[] - 15.11.2010, 20:57
Re: [AJUDA] Log Ban! - by Kasura - 15.11.2010, 21:00
Re: [AJUDA] Log Ban! - by SuB_ZeRo0_ - 15.11.2010, 21:03
Re: [AJUDA] Log Ban! - by Ricop522 - 15.11.2010, 21:26
Re: [AJUDA] Log Ban! - by Kasura - 15.11.2010, 21:39
Re: [AJUDA] Log Ban! - by Canabis - 15.11.2010, 23:08
Re: [AJUDA] Log Ban! - by Kasura - 15.11.2010, 23:28
Respuesta: [AJUDA] Log Ban! - by ipsBruno - 15.11.2010, 23:35
Re: [AJUDA] Log Ban! - by Canabis - 15.11.2010, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)