Mine
public text v1 · immutablenew gate(before main() )
public OnPlayerCommandText(playerid, cmdtext[] ) {
if (strcmp(cmdtext, "/gateopen", true)==0) {
MoveObject(gate, 327.180939, -1183.649170, 77.089111, 3);
return 1;
}
if (strcmp(cmdtext, "/gateclose", true)==0) {
MoveObject(gate, 321.424957, -1188.285034, 77.085876, 3);
return 1;
}
return 0;
}