[Ajuda] Carregar ao pegar o trailer
#4

cara eu fis assim

pawn Код:
if (strcmp(cmd, "/carregar", true) == 0)
    {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Petroleiro){
    }
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        new modelo;
        modelo = GetVehicleModel(VehicleID);
        if (modelo == 584)
if(IsTrailerAttachedToVehicle(584))
{
    SendClientMessage(playerid,-1,"[ INFO ] Seu caminhгo estб carregado com petroleo leve-o atй um posto!");
}

        {
            if (PlayerToPoint(60.0, playerid, 269.8848,1352.7755,10.5859))
            {
                SetPlayerMapIcon(playerid, 81, -1026.4006, -625.2548, 32.0078, 51, 0); //Posto1
                SetPlayerMapIcon(playerid, 82, 2819.81, 915.62, 11.77, 51, 0); //Posto1
                if (Carregamento[playerid] == 0)
                {
                }

                else
                {
                    SendClientMessage(playerid, Amarelo, "** Seu caminhгo Foi Carregado!");
                    return 1;
                }
            }
            else
            {
                SendClientMessage(playerid, Vermelho, "** Vocк nгo estб na бrea de carga");
                return 1;
            }

        }


    }
acho que ta erradu ne
Reply


Messages In This Thread
Carregar ao pegar o trailer - by Cromado - 07.05.2013, 19:20
Re: Carregar ao pegar o trailer - by ViictorDaay- - 07.05.2013, 19:42
Re: Carregar ao pegar o trailer - by ProKillerpa - 07.05.2013, 19:56
Re: Carregar ao pegar o trailer - by Cromado - 07.05.2013, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)