11.01.2015, 14:10
Olб a todos, bom estava procurando algumas novidades para meu servidor que estб em desenvolvimento.. E achei uma Filter script que adicionava uma caixa de som no veiculo 'Yosemite ID: 554' .
Eu achei um fs muito bom, e gostaria de adiciona-lo para outros veiculos, exemplo: Sultan, etc..
Os codes que vi no fs sгo esses:
Gostaria de saber, como pegar esses codes nгo sei, se poderem me ajudar de alguma forma para estar adicionando as caixas de som nуs veiculos..
Veja a print abaixo:
http://imgur.com/a/swWTO#0
Eu achei um fs muito bom, e gostaria de adiciona-lo para outros veiculos, exemplo: Sultan, etc..
Os codes que vi no fs sгo esses:
Код:
public OnPlayerExitVehicle(playerid, vehicleid) { if (tune[playerid] == 1) { ob2= CreateObject(1793, -0.45210, -3.56210, -0.29220, 0.00000, 0.00000, 0.00000); SetObjectMaterial(ob2, 0, 11301, "carshow_sfse", "ws_carpark2", 0xFF4F4F4F); ob3= CreateObject(1961, -0.37950, -1.15080, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob3, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob5= CreateObject(1944, 0.48330, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob5, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob6= CreateObject(1944, 0.04330, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob6, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob7= CreateObject(1944, -0.39670, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob7, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob11= CreateObject(1961, 0.42388, -1.19945, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob11, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob12= CreateObject(1961, -0.37040, -2.21100, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob12, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob13= CreateObject(1961, 0.41050, -2.20910, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob13, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob14= CreateObject(2263, -0.60740, -3.64590, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterial(ob14, 3, 14385, "trailerkb", "tr_wood1"); SetObjectMaterialText(ob14, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob14, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob15= CreateObject(2263, 0.63620, -3.65090, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(ob15, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob15, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob16= CreateObject(2263, 0.01410, -3.65250, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(ob16, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob16, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob17= CreateObject(1945, -0.38050, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob17, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob18= CreateObject(1945, -0.06050, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob18, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob19= CreateObject(1945, 0.23950, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob19, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob20= CreateObject(1945, 0.53950, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob20, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); tune[playerid] = 0; } } public OnPlayerConnect(playerid) { tune[playerid] = 0; SendClientMessage(playerid,-1,"Vocк adicionou som ao seu veнculo"); return 1; } CMD:tunar(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 554) // 411 is the infernus model { tune[playerid] = 1; ob2= CreateObject(1793, -0.45210, -3.56210, -0.29220, 0.00000, 0.00000, 0.00000); SetObjectMaterial(ob2, 0, 11301, "carshow_sfse", "ws_carpark2", 0xFF4F4F4F); ob3= CreateObject(1961, -0.37950, -1.15080, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob3, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob5= CreateObject(1944, 0.48330, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob5, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob6= CreateObject(1944, 0.04330, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob6, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob7= CreateObject(1944, -0.39670, -1.70080, 0.34810, 90.00000, 0.00000, 0.00000); SetObjectMaterial(ob7, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob11= CreateObject(1961, 0.42388, -1.19945, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob11, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob12= CreateObject(1961, -0.37040, -2.21100, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob12, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob13= CreateObject(1961, 0.41050, -2.20910, 0.37990, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob13, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER2"); ob14= CreateObject(2263, -0.60740, -3.64590, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterial(ob14, 3, 14385, "trailerkb", "tr_wood1"); SetObjectMaterialText(ob14, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob14, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob15= CreateObject(2263, 0.63620, -3.65090, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(ob15, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob15, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob16= CreateObject(2263, 0.01410, -3.65250, -0.26170, 0.00000, 0.00000, 0.00000); SetObjectMaterialText(ob16, "М", 0, OBJECT_MATERIAL_SIZE_64x64, "Wingdings", 100, 1, 0xfff0f0f0, 0, 1); SetObjectMaterial(ob16, 1, 8409, "gnhotel1", "gnhotelwall02_128", 1); ob17= CreateObject(1945, -0.38050, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob17, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob18= CreateObject(1945, -0.06050, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob18, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob19= CreateObject(1945, 0.23950, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob19, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); ob20= CreateObject(1945, 0.53950, -2.99620, 0.40810, -90.00000, 0.00000, 0.00000); SetObjectMaterial(ob20, 0, 2231, "cj_hi_fi2", "CJ_SPEAKER3"); AttachObjectToVehicle(ob2, GetPlayerVehicleID(playerid), -0.45210, -3.88210, -0.29220, 0.0, 0.0, 0.0);//1793 AttachObjectToVehicle(ob3, GetPlayerVehicleID(playerid),-0.37950, -1.15080, 0.37990, -90.0, 0.0, 0.0);//1961 AttachObjectToVehicle(ob5, GetPlayerVehicleID(playerid), 0.48330, -1.70080, 0.34810, 90.0, 0.0, 0.0);//1844 AttachObjectToVehicle(ob6, GetPlayerVehicleID(playerid),0.04330, -1.70080, 0.34810, 90.0, 0.0, 0.0);//1844 AttachObjectToVehicle(ob7, GetPlayerVehicleID(playerid),-0.39670, -1.70080, 0.34810, 90.0, 0.0, 0.0);//1844 AttachObjectToVehicle(ob11, GetPlayerVehicleID(playerid),0.42388, -1.19945, 0.37990, -90.0, 0.0, 0.0);//1961 AttachObjectToVehicle(ob12, GetPlayerVehicleID(playerid),-0.37040, -2.21100, 0.37990, -90.0, 0.0, 0.0);//1961 AttachObjectToVehicle(ob13, GetPlayerVehicleID(playerid),0.41050, -2.20910, 0.37990, -90.0, 0.0, 0.0);//1961 AttachObjectToVehicle(ob14, GetPlayerVehicleID(playerid),-0.60740, -3.64590, -0.26170, 0.0, 0.0, 0.0);//2633 AttachObjectToVehicle(ob15, GetPlayerVehicleID(playerid),0.63620, -3.65090, -0.26170, 0.0, 0.0, 0.0);//2263 AttachObjectToVehicle(ob16, GetPlayerVehicleID(playerid),0.01410, -3.65250, -0.26170, 0.0, 0.0, 0.0);//2263 AttachObjectToVehicle(ob17, GetPlayerVehicleID(playerid),-0.38050, -2.99620, 0.40810, -90.0, 0.0, 0.0);//1945 AttachObjectToVehicle(ob18, GetPlayerVehicleID(playerid),-0.06050, -2.99620, 0.40810, -90.0, 0.0, 0.0);//1945 AttachObjectToVehicle(ob19, GetPlayerVehicleID(playerid),0.23950, -2.99620, 0.40810, -90.0, 0.0, 0.0);//1945 AttachObjectToVehicle(ob20, GetPlayerVehicleID(playerid),0.53950, -2.99620, 0.40810, -90.0, 0.0, 0.0);//1945 ChangeVehicleColor(vehicleid,6,0); } return 1; } public OnObjectMoved(objectid) { DestroyObject(objectid); return 1; }
Veja a print abaixo:
http://imgur.com/a/swWTO#0