[Ajuda] /infoacc
#1

Iae galera eu tava fazendo um comando para meu servidor que seria: /infoacc [Nome] ai iria mostrar ,Senha , Level , grana, sу que nгo tive muito resultado o que eu consegui fazer foi isso aqui:

pawn Код:
if(strcmp(cmd, "/infoacc", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /infoacc [ Nome_Conta ]");
                return 1;
            }
            new acc;
            tmp = strtok(cmdtext, idx);
            if(PlayerInfo[playerid][pAdmin] >= 10 || IsPlayerAdmin(playerid))
            {
                if(IsPlayerConnected(para1))
                {
                    if(acc != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(playerid, plname, sizeof(plname));
                        format(string, sizeof(string), "%s.ini", plname);
                        printf("Nick: d% Senha: d% Level: d%", , giveplayer, level,pSenha);
                       
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }
Gostaria que alguem pudesse me ajuda.
Obrigado.
Reply


Messages In This Thread
/infoacc - by iStronG - 30.06.2013, 20:32
Re: /infoacc - by Chean - 30.06.2013, 20:40
Re: /infoacc - by iStronG - 30.06.2013, 20:55
Re: /infoacc - by Chean - 30.06.2013, 21:12
Re: /infoacc - by iStronG - 30.06.2013, 21:15
Re: /infoacc - by XxFaTaLxX - 30.06.2013, 21:35
Re: /infoacc - by iStronG - 30.06.2013, 23:56
Re: /infoacc - by BieeelEvolution - 01.07.2013, 00:10
Re: /infoacc - by iStronG - 01.07.2013, 00:15
Re: /infoacc - by BieeelEvolution - 01.07.2013, 00:15

Forum Jump:


Users browsing this thread: 2 Guest(s)