Neon Lights
#1

PHP код:
stock LoadMyCar(playerid)
{
    if(
GetPlayerHouse(playerid) == 0) return 1;
    if(
GetPlayerCar(playerid) == 0) return 1;
     new 
GetPVarInt(playerid"PlayerCars");
    new 
carid CreateVehicle(CarInfo[c][cModel], CarInfo[c][cX], CarInfo[c][cY], CarInfo[c][cZ], CarInfo[c][cFa], CarInfo[c][cColor][0], CarInfo[c][cColor][1], 90000);
     
CarDoors(caridCarInfo[c][cLock]);
     
Fuel[carid] = CarInfo[c][cFuel];
     
SetVehicleHealth(caridCarInfo[c][cHeal]);
    
Engine[carid] = false;
    
Lights[carid] = false;
    switch(
CarInfo[c][cLock])
    {
         case 
0IsLocked[carid] = false;
         case 
1IsLocked[carid] = true;
    }
    
LoadCar[playerid] = 1;
    
SetPVarInt(playerid,"CREVEH",carid);
    if(
CarInfo[c][cVehcoms][0]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][0]);
    if(
CarInfo[c][cVehcoms][1]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][1]);
    if(
CarInfo[c][cVehcoms][2]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][2]);
    if(
CarInfo[c][cVehcoms][3]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][3]);
    if(
CarInfo[c][cVehcoms][4]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][4]);
    if(
CarInfo[c][cVehcoms][5]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][5]);
    if(
CarInfo[c][cVehcoms][6]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][6]);
    if(
CarInfo[c][cVehcoms][7]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][7]);
    if(
CarInfo[c][cVehcoms][8]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][8]);
    if(
CarInfo[c][cVehcoms][9]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][9]);
    if(
CarInfo[c][cVehcoms][10]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][10]);
    if(
CarInfo[c][cVehcoms][11]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][11]);
    if(
CarInfo[c][cVehcoms][12]!=0AddVehicleComponent(caridCarInfo[c][cVehcoms][12]);
    if(
CarInfo[c][cVehcoms][13]!=0AddVehicleComponent(carid,CarInfo[c][cVehcoms][13]);
    if(
CarInfo[c][cVehcoms][14]!=0AddVehicleComponent(carid,CarInfo[c][cVehcoms][14]);
        if(
CarInfo[c][cVehcoms][15]==1)
    {
    }
    if(
CarInfo[c][cPaintjob]!=0ChangeVehiclePaintjob(caridCarInfo[c][cPaintjob]);
    return 
true;

I need if cVehcoms[15] is 1 than it adds neon
I tried these lines, but when my car was respawned it wasn't showing neon...
PHP код:
SetPVarInt(playerid"blue"CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid"blue1"CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid"blue"), GetPlayerVehicleID(playerid), -0.80.0, -0.700.00.00.0);
AttachObjectToVehicle(GetPVarInt(playerid"blue1"), GetPlayerVehicleID(playerid), 0.80.0, -0.700.00.00.0); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)