24.09.2009, 17:55
Try this
Код:
} if (strcmp("/mdelevator", cmdtext, true, 10) == 0) { if (PlayerToPoint(26, playerid,1148.358032,-1315.570678,24.000000)) if(MDElevatorstatus) { MoveObject(MDElevator, 1148.358032,-1315.570678,31.79 , 2); MDElevatorstatus = 0; } else { MoveObject(MDElevator, 1148.358032,-1315.570678,14 , 2); MDElevatorstatus = 1; } return 1; } if (strcmp("/enter", cmdtext, true, 10) == 0) { if (PlayerToPoint(3.0,playerid,1173.0345,-1323.7742,15.3973)) { SetPlayerPos(playerid,1174.5543,-1310.0366,-4.9240); } return 1; } } return 0; }