2 gates open 1 command FIXED THANKS
#1

how can i make 2 gates open with 1e command??
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;
}
BUT only 1e gate goes open
Reply
#2

Add both
Код:
MoveObject
codes to one command. It will work than.
Reply
#3

what you mean ??
where do i need to add
Код:
MoveObject
Reply
#4

pawn Код:
if(!strcmp(cmdtext,"/SAFMARSCLOSE",true))
{
  MoveObject (SAFMARS2,938.895569,1810.972900,17.596329,2.5);
  MoveObject (SAFMARS2,938.895569,1810.972900,11.596329,2.5);
  return 1;
}
Reply
#5

thank you man
Reply
#6

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)