Pessoal , criei um fs , onde e um tubning , mais na opзao de adicionar uma caoixa de som na trazeira do carro , eu queria saber se tem como , qualificar para a caixa setar em tal coordenada conforme o carro , conforme o id ex de id 411 a 511 - e as coordenadas de onde vai setar eu coloco , so preciso definir o id e mudar as coordenadas conforme o id pf ajudem
Код HTML:
if(dialogid == DIALOG_TYPE_CSTEREO)
{
if(!response)
{
SetCameraBehindPlayer(playerid);
}
if(response)
{
switch(listitem)// Checking which list item was selected
{
case 0:
{
if(GetPlayerMoney(playerid) >= -1500)
{
new car = GetPlayerVehicleID(playerid);
AddVehicleComponent(car,1086);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
SetPVarInt(playerid, "1", CreateObject(2232,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "1"), GetPlayerVehicleID(playerid), 0.0, -2.2, 0.0, 0.0, 90.0, 0.0);
new a, b, c, d, e, f, g;
new Carruuh = GetPlayerVehicleID(playerid);
if(Carruuh != INVALID_VEHICLE_ID)
GetVehicleParamsEx(Carruuh, a, b, c, d, e, f, g);
SetVehicleParamsEx(Carruuh, a, b, c, d, e, VEHICLE_PARAMS_ON, g);
SendClientMessage(playerid,COLOR_WHITE,"[INFO] Componente instalado. ");
ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
}
else
{
SendClientMessage(playerid,COLOR_RED,"Dinheiro nгo й suficiente!");
ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
}
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_TYPE_CSTEREO, DIALOG_STYLE_LIST, "Car Stereo", "Bass Boost\n \nBack", "Apply", "Close");
}
case 2:
{
ShowPlayerDialog(playerid, DIALOG_TYPE_MAIN, DIALOG_STYLE_LIST, "Car Tuning Menu", "Paint Jobs\nColors\nHoods\nVents\nLights\nExhausts\nFront Bumpers\nRear Bumpers\nRoofs\nSpoilers\nSide Skirts\nBullbars\nWheels\nCar Stereo\nHydraulics\nNitrous Oxide\nRepair Car", "Enter", "Close");
}
}
}
}