SA-MP Forums Archive
[Ajuda] alguem ajud - 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] alguem ajud (/showthread.php?tid=417103)



alguem ajud - WarniinG - 19.02.2013

to tentando criar um comando pra quando o player digitar /entrarcarro ele entra no carro que estiver na frente dele alguem podi me ajuda?

pawn Код:
CMD:entrarcarro(playerid)
    {
        if(IsPlayerConnected(playerid))
        {
            new LELELE = 0;
            for(new i; i != MAX_VEHICLES; i++)
            {
                new dist = VeiculoPorPerto(5, playerid, i);
                if(dist)
                {
                    LELELE++;
                }
            }
            switch(LELELE)
            {
                case 0:
                {
                    SendClientMessage(playerid, COLOR_GREY, "nгo tem carro por perto filho");
                }
                case 1:
                {
                 PutPlayerInVehicle(LELELE);
                }
                default:
                {
                    SendClientMessage(playerid, COLOR_GREY, "tem mais de um carro ae ");
                }
            }
        }
        return true;
    }



Re: alguem ajud - WarniinG - 19.02.2013

agueem ?


Re: alguem ajud - jilead - 19.02.2013

axo q e maix fassil apertar enter ou f sauahsusahuh

so ґpost pa ve se algem ve kk