View Single Post
  #7  
Old 05-09-2008, 01:07 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stryke View Post
@cbkbud: How would you check if a player went online/offline?

@Tigarius: Nothing really for future reference. I just made a stupid mistake I overlooked. The ones that others solved for me are still alive and well.
In NPC-Control script:

PHP Code:
function onActionPlayerOnline()
{
  
player.loadVars"control/players/" player.account ".txt" );
}
function 
onPlayerLogOut)
{
  if ( 
p.account.length() > )
  {
    
p.saveVars"control/players/" player.account ".txt"false );
  }

Something like this perhaps?
__________________
Reply With Quote