Jump to content
  • 0

Request Script


Question

Posted

i want to request a script that. onpclogin he will atach the player after 20mins there is a message will pop up . then he need to answer that if he is wrong he will go to jail. then after 1 hour the message will pop up again. and so on and so on!. like a anti bot :D thx!

2 answers to this question

Recommended Posts

Posted

try this

- script Sample -1,{
OnPCLoginEvent:
addtimer ( 20 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
end;

OnTimerUp:
mes "What is your Name ?";
input .@Input$;
if( .@Input$ == strcharinfo(0) ){
mes "Correct.";
addtimer ( 60 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
close;
}else{
mes "Wrong.";
close2;
atcommand "@jail "+strcharinfo(0);
}
end;
}

  • Upvote 1
Posted

try this

- script Sample -1,{
OnPCLoginEvent:
addtimer ( 20 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
end;

OnTimerUp:
mes "What is your Name ?";
input .@Input$;
if( .@Input$ == strcharinfo(0) ){
mes "Correct.";
addtimer ( 60 * 60000 ),strnpcinfo(0)+"::OnTimeUp";
close;
}else{
mes "Wrong.";
close2;
atcommand "@jail "+strcharinfo(0);
}
end;
}

thx gonna try it :D

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