Jump to content
  • 0

GM password


Phantom Of Rogue-Gon

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

hello,

GM password level 2 above have password 

for anti hack gm Level i have many treats to my server

if the incorrect the password 10mins before login again 

Edited by Phantom Of Rogue-Gon
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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;
        }
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Post Reasonable Requests - Don't just say, I want a quest npc... Explain yourself, if it's something already made, use it.

Elaborate more on your request.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  226
  • Reputation:   11
  • Joined:  01/09/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...