Jump to content
  • 0

@command password lock


kelvin

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

Hi, may i request password lock @item command script? 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


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


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

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

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:  

@Off topic: Nice password @Capuche :D

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

thanks capuche

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