AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Quiz (https://forums.alliedmods.net/showthread.php?t=40321)

Deviance 06-26-2006 02:14

Quiz
 
12 Attachment(s)
Last Update: 11-04-07(DD/MM/YYYY)

Are you bored when your dead?
Do you want something to pass the time whit?

Then you should use The Quiz Plugin :)

Unzip the quiz_file.rar in the amxmodx folder. The Questions/Answers is like:

QUESTION>"What is 1 + 1?" ANSWER>"2"
"Who is gaben" "gaben"
"what does cs stand for" "Conter-Strike"

The plugin then takes a random Q/A

to answer, simply say the plain answer in-game

CVARS
-------
quiz_enabled(Def: 1) - 0: Disabled - 1: Enabled
quiz_usemode(Def: 0) - 0: Only dead can see the question and answer - 1: Only alive can see the question and answer - 2: Both dead and alive can see the question and answer
quiz_reward(Def: 2000) - (cs only!) How much you get when answering right
quiz_timelimit(Def: 120) - 0: disabled - > 0: time before selecting a new question(note that it's in seconds!)
quiz_min_display(Def: 20) - Minimum time to display the current question
quiz_max_display(Def: 50) - Maximum time to display the current question
quiz_display_mode(Def: 0) - 0: Display everything in chat, 1: Display everything in HUD, 2: Display everything in chat and HUD

say /question - Shows the current question.

Hope you like it, and plz report all bugs, and Suggestions/Requests are always welcome :D

Now you can use the plugin in all mods( auto-switches if you dont have cstrike :) )

Many thanks to Throstur for the Q/A file :D:D

EDIT: Added timelimit

TO-DO:
* Write a Q/A file
* Make it work for all mods
* Get more respond
* Make rewards to other mods then cstrike

Planned:
* Make it use HUD Done
* Make some trigger, i.e /question Done
* Add point-system Canceled
* Add rank-sys Canceled

Thanks to:
.:{EK}:. SQUALL for PMing me so i could fix the plugin
Throstur for the main quiz file
bmann_420 that helped me find a bug in one of the functions

k007 06-26-2006 09:29

Re: Quiz
 
nice, Gj

SubStream 06-26-2006 10:15

Re: Quiz
 
Great idea sounds like a good one for fun servers especially

Deviance 06-26-2006 13:28

Re: Quiz
 
TO-DO:
* Write a Q/A file(DONE, thx Throstur :))
* Make it work for all mods(DONE)
* Get more respond

Planned:
* Make it use HUD
* Make some trigger, i.e /question

Throstur 06-26-2006 14:23

Re: Quiz
 
I remember playing on a source server with this installed, its great fun, but there have to be MANY questions and answers, because the same questions sometimes came up over and over...

VEN 06-26-2006 14:54

Re: Quiz
 
Definitely a good idea.
Q/A databaze, point system will make it even more interesting.

Deviance 06-26-2006 17:18

Re: Quiz
 
Quote:

Originally Posted by Throstur
I remember playing on a source server with this installed, its great fun, but there have to be MANY questions and answers, because the same questions sometimes came up over and over...

as long the server dont change map, it will remember already taken questions

btw, i have to agree, i got the idea from that quiz plugin( think it's one of Mattie's plugins)

OT, wasen't you banned?

Quote:

Originally Posted by VEN
Definitely a good idea.
Q/A databaze, point system will make it even more interesting.

Wow, thank you VEN :D

i was thinking of throwing in a simple rank system, and some more support for Q/A storing( Maybe SQL )

also, i gonna upload a version that can run on ALL mods( but no rewards )

EDIT: ok, done

Lord_Destros 06-27-2006 02:54

Re: Quiz
 
EDIT: How do you delete posts? :roll:

Xanimos 06-27-2006 08:51

Re: Quiz
 
Ok there are a couple things I found that were wrong here. Just so you can fix them here is what I found.

quiz_for_all.sma
1) If you were trying to get rid of cstrike module you still left the include.
2) You register the reward cvar and don't use it.

quiz.sma
1) You aren't using the reward cvar correctly.

The whole thing
I don't understand why you have two plugins here when they are exactly the same except one gives reward and one doesn't. If it was done so it isn't only for counter-strike, then use the module filters and see if cstrike didn't load and if it didn't then just don't use cstrike functions. There are a few tuts on it including the one by BAIL when this functionality was first added to AMXX.

It's a good idea and if the module filter is put in place I would feel better about approving this.

Deviance 06-27-2006 10:02

Re: Quiz
 
Thanks for the thoughts, this has been fixed


All times are GMT -4. The time now is 03:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.