Jump to content
  • 0

@command password lock


Question

5 answers to this question

Recommended Posts

Posted

Thanks patskie. The idea is there just need edit it. The script is every Gm above lvl60 need to set their own password . Can someone make me the script similar the script from the link but manually set password at the script and all gm's must input that password to use @item command

Posted


- script item_cmd -1,{

OnInit:

.password$ = "MouHahahaha!";

bindatcmd "item",strnpcinfo(3)+"::OnAtcommand",60,60;// your min gmlevel

end;

OnAtcommand:

.@myname$ = strcharinfo(0);

message .@myname$, "@item password ?";

input .@tmp$;

if ( .@tmp$ != .password$ )

message .@myname$, "Wrong password.";

else

atcommand "@item "+ implode( .@atcmd_parameters$," " );

end;

}

  • Upvote 1

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