View Single Post
  #6  
Old 05-12-2013, 11:31 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by fowlplay4 View Post
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.30;
    
temp.pl.30;
    
temp.pl.saveaccount();
    
temp.pl.destroy();
  } else {
    
temp.pl.setlevel2("onlinestartlocal.nw"3030);
  }

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)
__________________
Reply With Quote