[Ajuda] 2 Comandos
#2

pawn Код:
if(strcmp(cmd, "/pinfo", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pAdmin] >= 5)
        {
            tmp = strtok(cmdtext,idx);
            new playersip[256];
            if(!strlen(tmp))
            {
                SendClientMessage(playerid,Vermelho,"| ERRO | /pinfo [Players ID]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerIp( giveplayerid,playersip,sizeof(playersip));
            format(string, sizeof(string), "Player: %s IP: %s",giveplayer,playersip);
            SendClientMessage(playerid,Vermelho,string);
        }
        return 1;
    }
Com ele vocк conseguirб visualizar o IP .
Reply


Messages In This Thread
2 Comandos - by FabioGTP - 26.05.2014, 20:44
Re: 2 Comandos - by Alwe - 26.05.2014, 21:09
Re: 2 Comandos - by MatheusDalZot - 26.05.2014, 21:17
Re: 2 Comandos - by FabioGTP - 26.05.2014, 21:36
Re: 2 Comandos - by Alwe - 26.05.2014, 21:38
Re: 2 Comandos - by FabioGTP - 26.05.2014, 21:54
Re: 2 Comandos - by Alwe - 26.05.2014, 22:00
Re: 2 Comandos - by MatheusDalZot - 26.05.2014, 22:04

Forum Jump:


Users browsing this thread: 2 Guest(s)