Trouble opening gate
#1

Hey,
I have trouble opening two gates at the same time (also opening one gate at the time).

Here's the part of my script:

Код:
new warehousegate;
new warehousegate2;
Код:
	warehousegate	=	CreateStreamObject(969,2233.48828125,-2214.86328125,12.546875,0.000000,0.000000,315.58032226563,75); //
	warehousegate2	=	CreateStreamObject(969,2227.2202148438,-2208.5847167969,12.546875,0.000000,0.000000,315.34533691406,75); //
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/opengate", cmdtext, true, 10) == 0)
	{
	  MoveObject(warehousegate, 2238.3955078125, -2219.7905273438, 12.546875,1.50000);
	  SendClientMessage(playerid,white,"Warehouse gates openening.");
	 // MoveObject(warehousegate2, 2223.69140625, -2205.0378417969, 12.546875,1.50000);//12.546875
	  return 1;
	}
	return 0;
}
Thanks for the help
Reply
#2

MoveStreamObject(id,Float:movx,Float:movy,Float:mo vz,Floatpeed) - Move a streamed object

More info: http://forum.sa-mp.com/index.php?topic=62450.0


I think use use mido stream eh?
Reply
#3

Quote:
Originally Posted by VonLeeuwen
Hey,
I have trouble opening two gates at the same time (also opening one gate at the time).

Here's the part of my script:

Код:
new warehousegate;
new warehousegate2;
Код:
	warehousegate	=	CreateStreamObject(969,2233.48828125,-2214.86328125,12.546875,0.000000,0.000000,315.58032226563,75); //
	warehousegate2	=	CreateStreamObject(969,2227.2202148438,-2208.5847167969,12.546875,0.000000,0.000000,315.34533691406,75); //
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/opengate", cmdtext, true, 10) == 0)
	{
	  MoveObject(warehousegate, 2238.3955078125, -2219.7905273438, 12.546875,1.50000);
	  SendClientMessage(playerid,white,"Warehouse gates openening.");
	 // MoveObject(warehousegate2, 2223.69140625, -2205.0378417969, 12.546875,1.50000);//12.546875
	  return 1;
	}
	return 0;
}
Thanks for the help
remove // from your one MoveObject
Reply
#4

Yes I use MidoStream

And Saif, I tried it with one gate, just forgot to delete them there (A)

Thanks for the help, it'll work
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)