if(strcmp(temp,"park",true)==0)
{
if(house==255)return SendClientMessage(playerid,COLOR_WHITE,"Ó âàñ íåòó òåõíèêè");
for(new u;u {
if(IsPlayerInVehicle(playerid,buyveh ))
{
new Float:vx,Float:vy,Float:vz,Float:vfa;
CarInfo[house][vehmodel]=GetVehicleModel(buyveh);
GetVehiclePos(buyveh,vx,vy,vz);
GetVehicleZAngle(buyveh,vfa);
CarInfo[vehx]=vx;
CarInfo[vehy]=vy;
CarInfo[vehz]=vz;
CarInfo[vehfa]=vfa;
SendClientMessage(playerid,COLOR_WHITE,"Âû ïðèïàðêîâàëè ñâîþ òåõíèêó ");
DestroyVehicle(buyveh);
buyveh = CreateVehicle(CarInfo[vehmodel], CarInfo[vehx], CarInfo[vehy], CarInfo[vehz], CarInfo[vehfa], CarInfo[vehcolor1], CarInfo[vehcolor2], 60000);
//Attach3DTextLabelToVehicle(CarLabel , buyveh , 0.0, 0.0, 1.0);
OnPropTextdrawUpdate();
if(CarInfo[vehmod1]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod1]);
if(CarInfo[vehmod2]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod2]);
if(CarInfo[vehmod3]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod3]);
if(CarInfo[vehmod4]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod4]);
if(CarInfo[vehmod5]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod5]);
if(CarInfo[vehmod6]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod6]);
if(CarInfo[vehmod7]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod7]);
if(CarInfo[vehmod8]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod8]);
if(CarInfo[vehmod9]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod9]);
if(CarInfo[vehmod10]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod10]);
if(CarInfo[vehmod11]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod11]);
if(CarInfo[vehmod12]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod12]);
if(CarInfo[vehmod13]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod13]);
if(CarInfo[vehmod14]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod14]);
ChangeVehiclePaintjob(buyveh, CarInfo[vehpaintjob]);
OnCarUpdate();
return 1;
}
}
}
(carinfo);u++)
Баг с парк как сделать чтоб когда садишься в чужой транспорт ты немог прописать /park просто у меня мод в нём садишься в чужое авто за пасажира пишеш /v park и потом /v color 1 2 то на месте где твоя машина появиться такаяже как ты припарковал
{
if(house==255)return SendClientMessage(playerid,COLOR_WHITE,"Ó âàñ íåòó òåõíèêè");
for(new u;u {
if(IsPlayerInVehicle(playerid,buyveh ))
{
new Float:vx,Float:vy,Float:vz,Float:vfa;
CarInfo[house][vehmodel]=GetVehicleModel(buyveh);
GetVehiclePos(buyveh,vx,vy,vz);
GetVehicleZAngle(buyveh,vfa);
CarInfo[vehx]=vx;
CarInfo[vehy]=vy;
CarInfo[vehz]=vz;
CarInfo[vehfa]=vfa;
SendClientMessage(playerid,COLOR_WHITE,"Âû ïðèïàðêîâàëè ñâîþ òåõíèêó ");
DestroyVehicle(buyveh);
buyveh = CreateVehicle(CarInfo[vehmodel], CarInfo[vehx], CarInfo[vehy], CarInfo[vehz], CarInfo[vehfa], CarInfo[vehcolor1], CarInfo[vehcolor2], 60000);
//Attach3DTextLabelToVehicle(CarLabel , buyveh , 0.0, 0.0, 1.0);
OnPropTextdrawUpdate();
if(CarInfo[vehmod1]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod1]);
if(CarInfo[vehmod2]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod2]);
if(CarInfo[vehmod3]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod3]);
if(CarInfo[vehmod4]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod4]);
if(CarInfo[vehmod5]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod5]);
if(CarInfo[vehmod6]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod6]);
if(CarInfo[vehmod7]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod7]);
if(CarInfo[vehmod8]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod8]);
if(CarInfo[vehmod9]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod9]);
if(CarInfo[vehmod10]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod10]);
if(CarInfo[vehmod11]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod11]);
if(CarInfo[vehmod12]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod12]);
if(CarInfo[vehmod13]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod13]);
if(CarInfo[vehmod14]!=0)AddVehicleComponent(buyveh, CarInfo[vehmod14]);
ChangeVehiclePaintjob(buyveh, CarInfo[vehpaintjob]);
OnCarUpdate();
return 1;
}
}
}
(carinfo);u++)
Баг с парк как сделать чтоб когда садишься в чужой транспорт ты немог прописать /park просто у меня мод в нём садишься в чужое авто за пасажира пишеш /v park и потом /v color 1 2 то на месте где твоя машина появиться такаяже как ты припарковал
Последнее редактирование модератором: