SA-MP Forums Archive
[Ajuda] Banir por nickname tb - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Banir por nickname tb (/showthread.php?tid=189731)



[Ajuda] Banir por nickname tb - junioor - 13.11.2010

Boa noite!
Alguem poderia me ajudar a passar esse sistema para banir por nickname tb?!
Aguardando respostas!

SISTEMA:
http://pastebin.com/MWduzHUN


Re: [Ajuda] Banir por nickname tb - ipsBruno - 13.11.2010

Aqui vou te dar a melhor base,basta editar a gosto:

pawn Код:
#define Arquivos_Bans "Banidos/%s.ini" //arquivo onde fica os bans


stock BanirFedapota(playerid) // banir
{
    new
        NamePlayer[24],
        file[64]
    ;
    GetPlayerName(playerid,24,NamePlayer);     
    format(file,64,Arquivos_Bans,NamePlayer);
    dini_Create(file);
        return true;
}


stock ChecarFedapota(playerid) // connect
{
    new
        NamePlayer[24],
        file[64]
    ;
    GetPlayerName(playerid,24,NamePlayer);     
    format(file,64,Arquivos_Bans,NamePlayer);
    if(fexist(file))
    {
        SendClientMessage(playerid,0x00000,"Vocк ta banido");
        Kick(playerid);
    }
    return true;
}