I believe it might be related due to the lack of the player prefix, or conflict with local systems.
Try this level script:
PHP Code:
function onPlayerChats() {
if (player.chat == "testwarp") {
player.setlevel2("onlinestartlocal.nw", 30, 30);
player.chat = "Warped!";
}
}