Making Gate Movable for Horn
#1

As the Topic says,I want to make my Gate system movable when Horning from a Vehicle.Currently it's moving when typing /gate,But i don't want to delete it,keep it too and make my gate moving for Horn of the vehicle,

Код:
new LSPDGate;
Код:
  {
			if(!GateInfo[h][gStatus])
			{
            MoveObject(LSPDGate,1544.7018,-1630.9528,13.2196,0.0000,00.0000,90.0000);
			SetObjectRot(LSPDGate, 0.0000, 0.0000, 90.0000 );
			Action(playerid, "opens up the gate.");
  			GateInfo[h][gStatus]=1;
  			}
			else if(PlayerToPoint(9.0,playerid,1544.6943, -1630.7305, 13.2796))
			{
         	MoveObject(LSPDGate,1544.7018,-1630.9528,13.2196,0.0000,90.0000,90.0000);
         	SetObjectRot(LSPDGate, 0.0000, 90.0000, 90.0000 );
   			GateInfo[h][gStatus]=0;
   			Action(playerid, "closes up the gate.");
			}
  }
There you see my Code,Please tell me Which code do i have to apply and where do i need to apply the new codes without changing the above codes to the new codes please,Thanks!
Reply


Messages In This Thread
Making Gate Movable for Horn - by Magnezia - 12.06.2015, 23:45
Re: Making Gate Movable for Horn - by [KHK]Khalid - 13.06.2015, 00:46
Re: Making Gate Movable for Horn - by Abagail - 13.06.2015, 01:14
Re: Making Gate Movable for Horn - by [KHK]Khalid - 13.06.2015, 01:27
Re: Making Gate Movable for Horn - by Magnezia - 13.06.2015, 02:09
Re: Making Gate Movable for Horn - by Abagail - 13.06.2015, 02:31
Re: Making Gate Movable for Horn - by [KHK]Khalid - 13.06.2015, 02:45

Forum Jump:


Users browsing this thread: 2 Guest(s)