What is this plugin ?
FreddyCorp:“This plugin adds a test on the first connection of your players,
you can populate it with the questions you want very easily !”
“This can be very useful if you have a RolePlay server and you want to make sure that all your players know how to play correctly.”
Features
- UI on first connection that displays a form with a defined number of questions
- Add your own questions
- Add your own minimum score to pass the test (currently 8/10)
Installation
-
- Download the vrp_testrp
-
- Put the vrp_testrp in your resource files
-
- Enter in server.cfg.
-
- Type start vrp_testrp
- 5.Enter in database (localhost/host) and import the Database.sql
-
- Enjoy xD
Add you questions
- Go to html/questions.js
- Add your questions like so:
{question : "your question here",
propositionA : "Choice A",
propositionB : "Choice B",
propositionC : "Choice C",
propositionD : "Choice D",
reponse : "B"}, // here put the correct answer
- In html/scripts.js you can modify the following variables:
var nbQuestionToAnswer = 10; // Number of questions to answer
var nbAnswerNeeded = 8; // Number of right answers to pass the test
var nbPossibleQuestions = 15; //number of questions in questions.js
- You can also modify the logo in html/logo.png
Feel free to add your questions and modify the text (html/ui.html)
[Credit] Sighmir created the “vrp_dmvschool”
[IMPORTANT] rename folder “vrp_testrp” !!
link-download : vrp_testrp (00:00-Update database in folder)