if (strcmp("/MoveGatePlease", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(i, 10.0, -766.9352, 92.1028, 192.3989)) { MoveObject(AutomaticGate, -766.9352, 92.1028, 192.3989, 5.0); } return 1; }