new valtozo;public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp(cmdtext, \"/daru-fel\", true) || !strcmp(cmdtext, \"/libego-fel\", true)){MoveObject(libego, -2441.85181, 1511.01392, 3.99180, 2.0, 0.00000, 0.00000, -90.00000);//fentvaltozo = 1;return 1;} if(!strcmp(cmdtext, \"/d2-fel\", true) || !strcmp(cmdtext, \"/D2-fel\", true)){MoveObject(D2, -2457.16016, 1558.36792, 29.54400, 3.0, 0.00000, 0.00000, 0.00000);valtozo = 1;return 1;}return 0;}public OnObjectMoved(objectid){if(objectid == libego) { valtozo++; }//a 13 koordináta ahova mozogjon (lefele)switch(valtozo){ case 1: MoveObject(libego, -2441.85181, 1511.01392, 3.99180, 2.0, 0.00000, 0.00000, -90.00000);//Alap case 2: MoveObject(libego, -2441.85181, 1511.01392, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Fent case 3: MoveObject(libego, -2442.55542, 1554.75098, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Bent case 4: MoveObject(libego, -2441.85181, 1511.01392, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Fent case 5: MoveObject(libego, -2441.85181, 1511.01392, 3.99180, 2.0, 0.00000, 0.00000, -90.00000);//Alap}if(objectid == D2) { valtozo++; }//a 13 koordináta ahova mozogjon (lefele)switch(valtozo){ case 1: MoveObject(D2, -2457.16016, 1558.36792, 29.54400, 3.0, 0.00000, 0.00000, 0.00000);//lent case 2: MoveObject(D2, -2457.16016, 1558.36792, 167.27658, 3.0, 0.00000, 0.00000, 0.00000);//Fent}return 1;}
public OnObjectMoved(objectid){if(objectid == libego)switch(valtozo % 5){ case 0: MoveObject(libego, -2441.85181, 1511.01392, 3.99180, 2.0, 0.00000, 0.00000, -90.00000);//Alap case 1: MoveObject(libego, -2441.85181, 1511.01392, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Fent case 2: MoveObject(libego, -2442.55542, 1554.75098, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Bent case 3: MoveObject(libego, -2441.85181, 1511.01392, 29.55568, 2.0, 0.00000, 0.00000, -90.00000);//Fent case 4: MoveObject(libego, -2441.85181, 1511.01392, 3.99180, 2.0, 0.00000, 0.00000, -90.00000);//Alap}valtozo++;return 1;}