if (strcmp("/open", cmdtext, true, 10) == 0) { MoveObject(2990,2483.01660156,-1687.36755371,16.42179298,1000); SetTimer("close", 10, 0);//the gate will close after 10 seconds return 1; }