я вот сделал 3 пункта тюнинга это void Main()
{
///////////////////////////////////////////
int fileHandle;
string Dver = "";
fileHandle = iFileReadOpen(".\\Car\\Dver.txt");
if (fileHandle != -1)
{
iFileStringRead(fileHandle,Dver);
iFileClose(fileHandle);
}
iObjectTextSet(OBJ_0,Dver);
if(Dver == "1")
{
iObjectShow(OBJ_110);
iObjectShow(OBJ_132);
}
int fileHandle2;
string Bagaznik = "";
fileHandle2 = iFileReadOpen(".\\Car\\Bagaz.txt");
if (fileHandle2 != -1)
{
iFileStringRead(fileHandle2,Bagaznik);
iFileClose(fileHandle2);
}
iObjectTextSet(OBJ_198,Bagaznik);
if(Bagaznik == "1")
{
iObjectShow(OBJ_88);
iObjectShow(OBJ_154);
}
int fileHandle3;
string Bamper = "";
fileHandle3 = iFileReadOpen(".\\Car\\Bamper.txt");
if (fileHandle3 != -1)
{
iFileStringRead(fileHandle3,Bamper);
iFileClose(fileHandle3);
}
iObjectTextSet(OBJ_220,Bamper);
if(Bamper == "1")
{
iObjectShow(OBJ_22);
iObjectShow(OBJ_44);
}
if(Bamper == "2")
{
iObjectHide(OBJ_22);
iObjectHide(OBJ_44);
}
if(Bagaznik == "2")
{
iObjectHide(OBJ_154);
iObjectHide(OBJ_88);
}
if(Dver == "2")
{
iObjectHide(OBJ_110);
iObjectHide(OBJ_132);
}
}
+
void Main()
{
int fileHandle;
string Dver = "";
if (IN_67 >0)
if(IN_88 >0)
{
fileHandle = iFileWriteOpen(".\\Car\\Dver.txt");
if (fileHandle != -1)
{
iFileStringWrite(fileHandle,"1",true);
iFileClose(fileHandle);
}
fileHandle = iFileReadOpen(".\\Car\\Dver.txt");
if (fileHandle != -1)
{
iFileStringRead(fileHandle,Dver);
iFileClose(fileHandle);
}
iObjectTextSet(OBJ_0,Dver);
}
if(Dver == "1")
{
iObjectShow(OBJ_44);
iObjectShow(OBJ_22);
}
int fileHandle2;
string Bagaznik = "";
if (IN_111 >0)
if(IN_88 >0)
{
fileHandle2 = iFileWriteOpen(".\\Car\\Bagaz.txt");
if (fileHandle2 != -1)
{
iFileStringWrite(fileHandle2,"1",true);
iFileClose(fileHandle2);
}
fileHandle2 = iFileReadOpen(".\\Car\\Bagaz.txt");
if (fileHandle2 != -1)
{
iFileStringRead(fileHandle2,Bagaznik);
iFileClose(fileHandle2);
}
iObjectTextSet(OBJ_308,Bagaznik);
}
if(Bagaznik == "1")
{
iObjectShow(OBJ_132);
iObjectShow(OBJ_154);
}
int fileHandle3;
string Bamper = "";
if (IN_177 >0)
if(IN_88 >0)
{
fileHandle3 = iFileWriteOpen(".\\Car\\Bamper.txt");
if (fileHandle3 != -1)
{
iFileStringWrite(fileHandle3,"1",true);
iFileClose(fileHandle3);
}
fileHandle3 = iFileReadOpen(".\\Car\\Bamper.txt");
if (fileHandle3 != -1)
{
iFileStringRead(fileHandle3,Bamper);
iFileClose(fileHandle3);
}
iObjectTextSet(OBJ_330,Bamper);
}
if(Bamper == "1")
{
iObjectShow(OBJ_198);
iObjectShow(OBJ_220);
}
if (IN_243 >0)
if(IN_88 >0)
{
fileHandle2 = iFileWriteOpen(".\\Car\\Bagaz.txt");
if (fileHandle2 != -1)
{
iFileStringWrite(fileHandle2,"2",true);
iFileClose(fileHandle2);
}
fileHandle2 = iFileReadOpen(".\\Car\\Bagaz.txt");
if (fileHandle2 != -1)
{
iFileStringRead(fileHandle2,Bagaznik);
iFileClose(fileHandle2);
}
iObjectTextSet(OBJ_0,Bagaznik);
fileHandle3 = iFileWriteOpen(".\\Car\\Bamper.txt");
if (fileHandle3 != -1)
{
iFileStringWrite(fileHandle3,"2",true);
iFileClose(fileHandle3);
}
fileHandle3 = iFileReadOpen(".\\Car\\Bamper.txt");
if (fileHandle3 != -1)
{
iFileStringRead(fileHandle3,Bamper);
iFileClose(fileHandle3);
}
iObjectTextSet(OBJ_0,Bamper);
fileHandle = iFileWriteOpen(".\\Car\\Dver.txt");
if (fileHandle != -1)
{
iFileStringWrite(fileHandle,"2",true);
iFileClose(fileHandle);
}
fileHandle = iFileReadOpen(".\\Car\\Dver.txt");
if (fileHandle != -1)
{
iFileStringRead(fileHandle,Dver);
iFileClose(fileHandle);
}
iObjectTextSet(OBJ_0,Dver);
}
if(Bamper == "2")
{
iObjectHide(OBJ_198);
iObjectHide(OBJ_220);
}
if(Bagaznik == "2")
{
iObjectHide(OBJ_132);
iObjectHide(OBJ_154);
}
if(Dver == "2")
{
iObjectHide(OBJ_44);
iObjectHide(OBJ_22);
}
if(IN_88 >0)
if(IN_265 >0)
iObjectStart(OBJ_286);
}
а прикинь 10 машин и у каждой по 3 пункта тюнинга и + выбор 10 машин тоесть это колво скрипта
умножить на 10 + еще 10 таких скриптов =)