Quote:
|
if (playerenters) {
sendtorc("/reset" SPC player.account);
}
Ok, that works, but it doesn't do it only once, It continues to reset. How do I stop this?
|
PHP Code:
function onActionPlayerOnline() {
if (!(player.account in this.reset)) {
this.reset.add(player.account);
sendtorc("/reset" SPC player.account);
}
}
Put it in the DB NPC called Control-NPC.