if(strcmp(cmdtext, "/gotoloc", true) == 0) { SetPlayerPos(playerid, x y z coords); SetPlayerInterior(playerid, 0); // 0 if it's outside, otherwise change it to interior id return 1; }