If you want to reset players as they login use something like this:
PHP Code:
function onActionPlayerOnline(){
if(client.reset != true){
temp.acc = player.account;
sendtorc(format("/reset %s", temp.acc));
client.reset = true;
}
}
This should be added to the npc control.
I personally dislike that method, I would reset all accounts for once, instead of resetting them as players login as you requested.