Quote:
Originally Posted by fowlplay4
You can:
PHP Code:
function unstickOfflinePlayer(acc) {
temp.pl = findplayer(acc);
temp.offline = temp.pl == NULL;
temp.pl = temp.offline ? new TServerPlayer(@acc) : temp.pl;
if (temp.offline) {
temp.pl.levelname = "onlinestartlocal.nw";
temp.pl.x = 30;
temp.pl.y = 30;
temp.pl.saveaccount();
temp.pl.destroy();
} else {
temp.pl.setlevel2("onlinestartlocal.nw", 30, 30);
}
}
Just way easier and more reliable to do it when they login though.
|
Hmm doesn't that crash the server? (warping them if they're offline)