SA-MP Forums Archive
Trouble opening gate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Trouble opening gate (/showthread.php?tid=119998)



Trouble opening gate - VonLeeuwen - 10.01.2010

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


Re: Trouble opening gate - Jeffry - 10.01.2010

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?



Re: Trouble opening gate - Deat_Itself - 10.01.2010

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


Re: Trouble opening gate - VonLeeuwen - 10.01.2010

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