PHP Code:
function onCreated()
setTimer(0.05);
function onTimeOut() {
if (player.hearts < 0.5) {
setlevel2("hospital.nw",30,30); //syntax: setlevel2(LevelNameInString,x,y);
}
}
That should work without much lag. If there is lag, then use this:
PHP Code:
function onPlayerDies() { //I don't know if this is a real command, but Codein said there was one.
setlevel2("hospital.nw",30,30); //syntax: setlevel2(LevelNameInString,x,y);
}