Trivia
Ok this is one for AJAX
I'm looking for an events script that can, when people die whisper the question to them, and this happens for each player in turn, (same question) and then the first correct answer gets a cash reward. I know how to do the player death whispering, the cash reward, however selecting a question from a text file or database and the answer bit I don't have a clue. So ajax can you help me make this? Nat |
okay first of all i don't see why this question is ajax-restricted, but thanks for the shout out. i don't want the responsibility of answering all questions :D
some people have done something similar before (random selection) but i don't remember the threads. basically you use es_rand to generate a random number. then... Quote:
|
AHA cheers ajax
|
What do you mean by "this is not the code" ?? I understand it though and how to write it (I think)
I'm guessing this will have to be a script pack as I need to use the player_say.cfg to get the answers? |
I've got this:
random_question.cfg Code:
setinfo questionnum 0 Nat |
Quote:
Code:
//sample code Quote:
|
An Idea of how to make it more complicated; The more answers they get right the harder they get!
|
Quote:
you could also do something like this Code:
// here's your database Code:
// references your database |
Quote:
|
Quote:
Whenever a player is asked a question, you should store the answer in a userid specific cvar. edit: nvm |
All times are GMT -4. The time now is 11:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.