Jump to content
  • 0

Question

Posted (edited)

my server got hacked and i need a script that with second password to all players. thank you.

damn hackers.

i already ip ban hacker ip yesterday but i think his ip change now.

please help me guys.

Edited by hatake

15 answers to this question

Recommended Posts

Posted

- 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...

Posted

You can manually reset or change it in your database on table global_reg_value.. or add a menu like "forgot password" but first you must add Secret Question after they inputed there Secondary Password.

Posted (edited)

If you put in the wrong password, it kicks you off right away.

If you can't remember your password, you type in "Forgot" and it brings you to the menu where you can reset your password using your secondary question.

EDIT:

Tested it and made some modifications. It should work without any errors now.

something.txt

Edited by Arcenciel

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...