03.06.2009, 06:41
how can i make 2 gates open with 1e command??
i have it like this
BUT only 1e gate goes open
i have it like this
Код:
new SAFMARS2;
new SAFMARS;
SAFMARS2 = CreateObject(980, 938.895569, 1810.972900, 17.596329, 0.0000, 0.0000, 270.0000);//
SAFMARS = CreateObject(980, 938.895386, 1822.428711, 17.596329, 0.0000, 0.0000, 90.0000);//
//--------------------------------------[GATE]------------------------------------------------------
if (strcmp(cmdtext, "/SAFMARSCLOSE", true)==0)
{
MoveObject (SAFMARS,938.895,1822.428,17.596,2.5);
return 1;
}
if (strcmp(cmdtext, "/SAFMARSOPEN", true)==0)
{
MoveObject (SAFMARS,938.895,1822.428,11.596,2.5);
return 1;
}
//--------------------------------------[GATE]------------------------------------------------------
if (strcmp(cmdtext, "/SAFMARSCLOSE", true)==0)
{
MoveObject (SAFMARS2,938.895569,1810.972900,17.596329,2.5);
return 1;
}
if (strcmp(cmdtext, "/SAFMARSOPEN", true)==0)
{
MoveObject (SAFMARS2,938.895569,1810.972900,11.596329,2.5);
return 1;
}

