Jump to content

[REZOLVAT] Neon


Exa
 Share

Recommended Posts

Salut sa:mp am si eu o problema la toate masinile si motocicletele se baga 2 neon dar la nrg vreau sa fie doar unu si nu pot am incercat cu if(model == 522) cu switch(car) {

 case 522:

Si am pus acolo 1 neon dar nu merge, ma poate ajuta cineva?

Poftim codu

function AttachNeon(carid) {
    if(CarInfo[carid][cNeon] == 0)
        return true;

    new vehicleid = CarInfo[carid][Spawned];
    switch(CarInfo[carid][cNeon]) {
        case 1: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18652,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18652,0,0,0,0,0,0);
        }
        case 2: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18651,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18651,0,0,0,0,0,0);
        }
        case 3: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18650,0,0,0,0,0,0);
        }
        case 4: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18649,0,0,0,0,0,0);
        }
        case 5: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18648,0,0,0,0,0,0);
        }
        case 6: {
            NeonObj[0][vehicleid] = CreateDynamicObject(18647,0,0,0,0,0,0);
            NeonObj[1][vehicleid] = CreateDynamicObject(18647,0,0,0,0,0,0);                    
        }
    }
    AttachDynamicObjectToVehicle(NeonObj[0][vehicleid], CarInfo[carid][Spawned], -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    AttachDynamicObjectToVehicle(NeonObj[1][vehicleid], CarInfo[carid][Spawned], 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
    return true;
}

Link to comment
Share on other sites

  • 2 weeks later...
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...