04.08.2010, 01:37
Код:
if (strcmp(cmdtext, "/side2",true)==0) { new Float:x, Float:y, Float:z; GetObjectPos(sidegate, x, y, z); new intx, inty, intz; intx = floatround(x * 100, FLOATROUND_ROUND); inty = floatround(y * 100, FLOATROUND_ROUND); intz = floatround(z * 100, FLOATROUND_ROUND); if (x == openxpos && y == openypos && z == openzpos) { MoveObject(sidegate, 2898.43139648,2132.76831055,13.79024315, 2.500000); } else if (intx == 2898431 && inty == 2132768 && intz == 13790) { MoveObject(sidegate, openxpos, openypos, openzpos, 2.500000); } else { SendClientMessage(playerid, 0xFFFFFFFF, "Gate is in motion"); return 1; }