12.06.2015, 23:45
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,
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!
Код:
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."); } }