- script Login_Events -1,{
OnPCLoginEvent:
if ( #secondpass == 0 ) {
mes "We are now requiring that each player have a secondary account password.";
mes "The system indicates that you don't have one yet.";
mes "What would you like your secondary password to be?";
input @secondpass$;
set #passsec$,@secondpass$;
set #secondpass,1;
next;
mes "Thanks for setting up your password. You will now be disconnected.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
} else {
mes "Please type in your secondary password";
input @secondpass$;
if ( @secondpass$ != #passsec$ ) {
mes "You typed in the wrong password.";
close2;
atcommand "@kick "+strcharinfo(0);
end;
}
mes "Thank you and have a great day!";
close;
}
}
Untested, tell me how it works.
Please tell me you're not using TXT for your live server...