[Ajuda] Anti Bot con/aux
#3

pawn Код:
#include a_samp

enum eNick
{
    NickO[24],
    NickT[24]
};

new BotNick[][eNick] =
{
    {"aux", "nome_para_trocar"},
    {"con", "nome_para_trocar"}
};

public OnPlayerConnect(playerid)
{
    for(new i = 0; i < sizeof BotNick; i++)
    {
        if(strcmp(GetPlayerNameEx(playerid), BotNick[i][NickO], true, strlen(BotNick[i][NickO]) ) == 0)
        {
            SetPlayerName(playerid, BotNick[i][NickT]);
            break;
        }
    }
    return 1;
}

stock GetPlayerNameEx(playerid)
{
    new name[24];
    GetPlayerName(playerid, name, 24);
    return name;
}
Reply


Messages In This Thread
Anti Bot con/aux - by Wendel S. - 22.07.2012, 17:31
Respuesta: Anti Bot con/aux - by Coreia - 22.07.2012, 17:34
Re: Anti Bot con/aux - by Victor' - 22.07.2012, 17:38
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:00
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:02
Re: Anti Bot con/aux - by Victor' - 22.07.2012, 18:11
Re: Anti Bot con/aux - by Wendel S. - 22.07.2012, 18:57
AW: Anti Bot con/aux - by billy the kid - 22.07.2012, 21:32

Forum Jump:


Users browsing this thread: 1 Guest(s)