new Float:cdoorpos[4][2][3] = {{{1862.02246, -1710.91992, 1201.54004},{1860.52246, -1710.91992, 1201.54004}},{{1849.32996, -1714.31006, 1201.54004},{1847.82996, -1714.31006, 1201.54004}},{{1854.01953, -1726.27344, 1201.54004},{1854.01953, -1727.77344, 1201.54004}},{{1847.31995, -1722.56995, 1201.54004},{1847.31995, -1724.06995, 1201.54004}}};
CMD:pdoor(playerid, params[]){new cello;if(sscanf(params, \"i\", cello)) return SendClientMessage(playerid, COLOR_GREY, \"Usage: /pdoor [id]\");{if(pInfo[playerid][Munka] == 1 || pInfo[playerid][Munka] == 2 || pInfo[playerid][Munka] == 3 || pInfo[playerid][Munka] == 13 || pInfo[playerid][Munka] == 14){if(cello > 0 && cello < 5){if(dopened[cello-1] == 0) { MoveDynamicObject(door[cello-1], cdoorpos[door[cello-1]][0][0], cdoorpos[door[cello-1]][0][1], cdoorpos[door[cello-1]][0][2], 1.0); dopened[cello-1] = 1; }else{ MoveDynamicObject(door[cello-1], cdoorpos[door[cello-1]][1][0], cdoorpos[door[cello-1]][1][1], cdoorpos[door[cello-1]][1][2], 1.0); dopened[cello-1] = 0; }}else{SendClientMessage(playerid, COLOR_RED, \"You can open doors between 1 & 4!\");}}else{SendClientMessage(playerid, COLOR_RED, \"You can\'t manage the doors!\");}}return 1;}