Jump to content

Question

4 answers to this question

Recommended Posts

Posted (edited)

I think he want a secondary password on his GM accounts, and when someone log in it and put the wrong password, the user will be bocked for 10 minutes before  the account can login again

Edited by xienne15
Posted

sorry for my bad english

Try :

-    script    Sample    -1,{
    OnPCLoginEvent:
        set .@password$, "abcdefgh123"; // GM password
        set .@time, 10; // 10 minutes
        if ( getgmlevel() < 2 ) end;
        if ( gettimetick(2) < #timer ) {
            mes "You cannot login";
            close2;
            atcommand "@kick " +strcharinfo(0);
            end;
        }
        sc_start sc_berserk, 1000000000, 1;
        mes "Input your password";
        next;
        input .@p$;
        if ( .@p$ != .@password$ ) {
            set #timer, gettimetick(2) + ( .@time * 60 );
            sc_end sc_berserk;
            close2;
            atcommand "@kick " +strcharinfo(0);
            end;
        } else {
            sc_end sc_berserk;
            mes "Thanks for your cooperation";
            close;
        }
}

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