#include <a_samp>new Kapu1; //változtathatod de a továbbiakban is ezt írd.new Kapu2;public OnFilterScriptInit(){ Kapu1 = CreateObject(985, 1539.404296875, -1632.1243896484, 14.132835388184, 0, 0, 269.99996948242);Kapu2 = CreateObject(986, 1539.2009277344, -1624.2360839844, 12.3828125, 0, 0, 0);return 1; }public OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/nyit\", cmdtext, true, 10) == 0) { MoveObject(Kapu1,1539.4229736328, -1623.9473876953, 14.1328125,2); //(nyílt kapu) return 1; } if (strcmp(\"/nyit2\", cmdtext, true, 10) == 0) { MoveObject(Kapu2,1539.3846435547, -1636.6932373047, 14.182815551758,2); //(nyílt kapu) return 1; } if (strcmp(\"/zár\", cmdtext, true, 10) == 0) { MoveObject(Kapu1,1539.404296875, -1632.1243896484, 14.132835388184,2); //(zárt kapu) a Garage1 heyett azt írd amit a new után return 1; } if (strcmp(\"/zár2\", cmdtext, true, 10) == 0) { MoveObject(Kapu2,1539.2009277344, -1624.2360839844, 12.3828125,2); //(zárt kapu) a Garage1 heyett azt írd amit a new után return 1; } return 0; }
Kapu1 = CreateObject(985, 1539.404296875, -1632.1243896484, 14.132835388184, 0, 0, 269.99996948242);Kapu2 = CreateObject(986, 1539.2009277344, -1624.2360839844, 12.3828125, 0, 0, 0);
new Kapu1;.new Kapu2;
DestroyObject(Kapu1);DestroyObject(kapu2);
if (strcmp(\"/nyit\", cmdtext, true, 10) == 0){MoveObject(Kapu1,1539.4229736328, -1623.9473876953, 14.1328125,2);MoveObject(Kapu2,1539.3846435547, -1636.6932373047, 14.182815551758,2);return 1;}if (strcmp(\"/zár\", cmdtext, true, 10) == 0){MoveObject(Kapu1,1539.404296875, -1632.1243896484, 14.132835388184,2);MoveObject(Kapu2,1539.2009277344, -1624.2360839844, 12.3828125,2);return 1;}