I just want to ask on how to add timer to this kind of script. Let say that the player will be given a 5 second to answer the question, if the player can't answer it within 5 seconds, he will be kicked out of the server.
Here is my sample code.
OnPCLoginEvent:
mes "2+2?";
input .@ans$;
if (.@ans$ != "4" ) {
mes "wrong!";
end;
}
else {
mes "right!";
end;
}
Question
Bisuke
I just want to ask on how to add timer to this kind of script. Let say that the player will be given a 5 second to answer the question, if the player can't answer it within 5 seconds, he will be kicked out of the server.
Here is my sample code.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.