08.03.2009, 07:16
i need help with vehicle components i want to make them available for all cars but dont want to add the giant list
This Is The Code:
Also the Paint Jobs dont seem to work
This Is The Code:
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/cartuning", true)==0) { SendClientMessage(playerid,COLOR_WHITE,"Car Tuning Made By John9815:"); SendClientMessage(playerid,COLOR_WHITE,"Wheels:Sha dow,"); SendClientMessage(playerid,COLOR_WHITE,"Paintjobs: Paintjob1,Paintjob2,Paintjob3"); SendClientMessage(playerid,COLOR_WHITE,"Misc:Fullt une"); return 1; } if (strcmp(cmdtext, "/Paintjob1", true)==0) { SendClientMessage(playerid,COLOR_WHITE,"Paintjob1 Colour Sprayed"); GameTextForPlayer(playerid,"~G~Paintjob1 ~N~Sprayed",12,4); ChangeVehiclePaintjob(602,0); ChangeVehiclePaintjob(429,0); ChangeVehiclePaintjob(496,0); ChangeVehiclePaintjob(402,0); ChangeVehiclePaintjob(541,0); ChangeVehiclePaintjob(415,0); ChangeVehiclePaintjob(589,0); ChangeVehiclePaintjob(587,0); ChangeVehiclePaintjob(565,0); ChangeVehiclePaintjob(411,0); ChangeVehiclePaintjob(559,0); ChangeVehiclePaintjob(603,0); ChangeVehiclePaintjob(475,0); ChangeVehiclePaintjob(506,0); ChangeVehiclePaintjob(451,0); ChangeVehiclePaintjob(558,0); ChangeVehiclePaintjob(477,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(462,0); ChangeVehiclePaintjob(509,0); ChangeVehiclePaintjob(481,0); ChangeVehiclePaintjob(510,0); ChangeVehiclePaintjob(406,0); ChangeVehiclePaintjob(573,0); ChangeVehiclePaintjob(444,0); ChangeVehiclePaintjob(556,0); ChangeVehiclePaintjob(557,0); ChangeVehiclePaintjob(565,0); ChangeVehiclePaintjob(535,0); ChangeVehiclePaintjob(560,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); ChangeVehiclePaintjob(522,0); return 1; } if (strcmp(cmdtext, "/Paintjob2", true)==0) { SendClientMessage(playerid,COLOR_WHITE,"Paintjob2 Colour Sprayed"); GameTextForPlayer(playerid,"~G~Paintjob2 ~N~Sprayed",12,4); ChangeVehiclePaintjob(602,1); ChangeVehiclePaintjob(429,1); ChangeVehiclePaintjob(496,1); ChangeVehiclePaintjob(402,1); ChangeVehiclePaintjob(541,1); ChangeVehiclePaintjob(415,1); ChangeVehiclePaintjob(589,1); ChangeVehiclePaintjob(587,1); ChangeVehiclePaintjob(565,1); ChangeVehiclePaintjob(411,1); ChangeVehiclePaintjob(559,1); ChangeVehiclePaintjob(603,1); ChangeVehiclePaintjob(475,1); ChangeVehiclePaintjob(506,1); ChangeVehiclePaintjob(451,1); ChangeVehiclePaintjob(558,1); ChangeVehiclePaintjob(477,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(462,1); ChangeVehiclePaintjob(509,1); ChangeVehiclePaintjob(481,1); ChangeVehiclePaintjob(510,1); ChangeVehiclePaintjob(406,1); ChangeVehiclePaintjob(573,1); ChangeVehiclePaintjob(444,1); ChangeVehiclePaintjob(556,1); ChangeVehiclePaintjob(557,1); ChangeVehiclePaintjob(565,1); ChangeVehiclePaintjob(535,1); ChangeVehiclePaintjob(560,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); ChangeVehiclePaintjob(522,1); return 1; } if (strcmp(cmdtext, "/Paintjob3", true)==0) { SendClientMessage(playerid,COLOR_WHITE,"Paintjob3 Colour Sprayed"); GameTextForPlayer(playerid,"~G~Paintjob3 ~N~Sprayed",12,4); ChangeVehiclePaintjob(602,2); ChangeVehiclePaintjob(429,2); ChangeVehiclePaintjob(496,2); ChangeVehiclePaintjob(402,2); ChangeVehiclePaintjob(541,2); ChangeVehiclePaintjob(415,2); ChangeVehiclePaintjob(589,2); ChangeVehiclePaintjob(587,2); ChangeVehiclePaintjob(565,2); ChangeVehiclePaintjob(411,2); ChangeVehiclePaintjob(559,2); ChangeVehiclePaintjob(603,2); ChangeVehiclePaintjob(475,2); ChangeVehiclePaintjob(506,2); ChangeVehiclePaintjob(451,2); ChangeVehiclePaintjob(558,2); ChangeVehiclePaintjob(477,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(462,2); ChangeVehiclePaintjob(509,2); ChangeVehiclePaintjob(481,2); ChangeVehiclePaintjob(510,2); ChangeVehiclePaintjob(406,2); ChangeVehiclePaintjob(573,2); ChangeVehiclePaintjob(444,2); ChangeVehiclePaintjob(556,2); ChangeVehiclePaintjob(557,2); ChangeVehiclePaintjob(565,2); ChangeVehiclePaintjob(535,2); ChangeVehiclePaintjob(560,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); ChangeVehiclePaintjob(522,2); return 1; } if (strcmp(cmdtext, "/shadow", true)==0) { AddVehicleComponent(522,1073); return 1; } return 0; |