Jump to content

DanielMayson

Membru
  • Posts

    59
  • Joined

  • Last visited

Posts posted by DanielMayson

  1. Asa trebuie sa fie

    new sirena; si vezi ca daca ai doar o masina infcop baga pentru inceput foloseste infcop[0] dar la new infcop[1];

    sirena = CreateObject(19620,-2597.0762,-2638.4270,-5.3536,0.0000, 0.0000, 0.0000);
    AttachObjectToVehicle(sirena, infcop[1], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |

    • Upvote 1
  2. Foloseste acest cod:


        if(GetPlayerState(id)!=1) return SendClientMessage(playerid,COLOR_GREY,"?? ??????!");
        new Float: XYZ[4];
        GetPlayerPos(id, XYZ[0], XYZ[1], XYZ[2]); GetPlayerFacingAngle(id, XYZ[3]);
        if(PlayerInfo[id][plveh]!=-1)DestroyVehicle(PlayerInfo[id][plveh]);
        PlayerInfo[id][plveh] = CreateVehicle(veh, XYZ[0], XYZ[1], XYZ[2], XYZ[3], -1, -1, -1);
        VehicleInfo[PlayerInfo[id][plveh]][vAntiRepair] = 2;
        VehicleHealth[PlayerInfo[id][plveh]] = 1000;
        PutPlayerInVehicle(id, PlayerInfo[id][plveh], 0);

  3. Acum 9 minute, DaEdRiC-FoX a spus:

    Te.ai complicat prea mult făcând 1000 de funcții în cascadă..problema aici este J_AddStaticVehicleEx, se creează un vehicul cu id 0 coordonate 0 culoare 0 etc, identifica problema si remediaz.o, sau fa o singură funcție mai complexă decât 10 care dau din una în alta

     

    Poate fi si de la /veh? el functioneaza cu  J_AddStaticVehicleEx

  4. Acum 9 minute, DaEdRiC-FoX a spus:

    Arată.mi cum chemi funcția jAddStaticVehEx

    CreateTeamVehicle(org,rank,model,Float:X,Float:Y,Float:Z,Float:A,Color_1,Color_2,spawntime)
    {
        new carid = J_AddStaticVehicleEx(model, X, Y, Z, A, Color_1, Color_2, spawntime);
        VehicleInfo[carid][vTeam] = org;
        VehicleInfo[carid][vRank] = rank;
        return carid;
    }
    CreateJobVehicle(job,model,Float:X,Float:Y,Float:Z,Float:A,Color_1,Color_2,spawntime)
    {
        new carid = J_AddStaticVehicleEx(model, X, Y, Z, A, Color_1, Color_2, spawntime);
        VehicleInfo[carid][vJob] = job;
        return carid;
    }


    OwnableCar = J_AddStaticVehicleEx(CarInfo[cModel],CarInfo[cPos_X],CarInfo[cPos_Y],CarInfo[cPos_Z],CarInfo[cPos_A],CarInfo[cColor_1],CarInfo[cColor_2],60000);

    J_AddStaticVehicleEx(462, 2230.0129, -1173.5667, 25.2544, 90.0000, -1, -1, 100);

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.