[HELP] tune a car
#1

Hi, Ive got the command /race. With it you gat a random car out of six and the car should get a little tuning.
Does somebody know hot to do this?
I've got this:
pawn Код:
new car0;
new car1;
new car2;
new car3;
new empty_car;
new rcar[]={558,559,560,561,562,565};
dcmd_race(playerid,params[])
{
    #pragma unused params
    if(IsPlayerInAnyVehicle(playerid))
    {
        SendClientMessage(playerid,YELLOW,"** >> pm Please get out of car before ypu type /race. You get get a car there.");
    }
    else
    {
        if(empty_car==0)
        {
          car0=CreateVehicle(rcar[random(sizeof(rcar))],1314.9274,-1838.8923,13.1099,359.5720,-1,-1,1000);
          PutPlayerInVehicle(playerid,car0,0);
            empty_car=1;
        }
        else if(empty_car==1)
        {
          car1=CreateVehicle(rcar[random(sizeof(rcar))],1309.9681,-1838.6947,13.1099,0.6044,-1,-1,1000);
          PutPlayerInVehicle(playerid,car1,0);
          AddVehicleComponent(car1,1010);
          empty_car=2;
        }
        else if(empty_car==2)
        {
          car2=CreateVehicle(rcar[random(sizeof(rcar))],1299.7612,-1838.6306,13.1099,359.9296,-1,-1,1000);
          PutPlayerInVehicle(playerid,car2,0);
          AddVehicleComponent(car2,1010);
          empty_car=3;
        }
        else if(empty_car==3)
        {
          car3=CreateVehicle(rcar[random(sizeof(rcar))],1294.8905,-1838.8063,13.1099,359.7646,-1,-1,1000);
          PutPlayerInVehicle(playerid,car3,0);
          AddVehicleComponent(car3,1010);
          empty_car=0;
        }
    }
  return 1;
}//getting the car works
and here are the tunings:
pawn Код:
if(GetVehicleModel(vehicleid)==558)//Uranus
        {
          AddVehicleComponent(car0,1010);
          AddVehicleComponent(car0,1088);
          AddVehicleComponent(car0,1090);
          AddVehicleComponent(car0,1092);
          AddVehicleComponent(car0,1094);
          AddVehicleComponent(car0,1164);
          AddVehicleComponent(car0,1166);
          AddVehicleComponent(car0,1168);
        }
        else if(GetVehicleModel(vehicleid)==559)//Jester
        {
          AddVehicleComponent(car0,1065);
          AddVehicleComponent(car0,1067);
          AddVehicleComponent(car0,1069);
          AddVehicleComponent(car0,1071);
          AddVehicleComponent(car0,1159);
          AddVehicleComponent(car0,1160);
          AddVehicleComponent(car0,1162);
        }
        else if(GetVehicleModel(vehicleid)==560)//Sultan
        {
          AddVehicleComponent(car0,1026);
          AddVehicleComponent(car0,1027);
          AddVehicleComponent(car0,1028);
          AddVehicleComponent(car0,1032);
          AddVehicleComponent(car0,1138);
          AddVehicleComponent(car0,1141);
          AddVehicleComponent(car0,1169);
        }
        else if(GetVehicleModel(vehicleid)==561)//Stratu
        {
            AddVehicleComponent(car0,1055);
            AddVehicleComponent(car0,1056);
        AddVehicleComponent(car0,1058);
          AddVehicleComponent(car0,1062);
          AddVehicleComponent(car0,1064);
          AddVehicleComponent(car0,1154);
          AddVehicleComponent(car0,1155);
        }
        else if(GetVehicleModel(vehicleid)==562)//Elegy
        {
          AddVehicleComponent(car0,1034);
          AddVehicleComponent(car0,1036);
          AddVehicleComponent(car0,1038);
          AddVehicleComponent(car0,1040);
          AddVehicleComponent(car0,1147);
          AddVehicleComponent(car0,1149);
          AddVehicleComponent(car0,1171);
        }
        else if(GetVehicleModel(vehicleid)==565)//Flash
        {
            AddVehicleComponent(car0,1046);
          AddVehicleComponent(car0,1047);
          AddVehicleComponent(car0,1049);
          AddVehicleComponent(car0,1051);
          AddVehicleComponent(car0,1054);
          AddVehicleComponent(car0,1150);
          AddVehicleComponent(car0,1153);
        }
You can ignore the"car0". I was just testing.
Can somebody help me please?
Reply
#2

Nobody?
Reply
#3

Quote:
Originally Posted by Marc_307
Nobody?
Don't bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)