Raised This Month: $114 Target: $400
 28% 

Quiz


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Xanimos (85)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-26-2006 , 03:14   Quiz
Reply With Quote #1

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

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

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
Attached Files
File Type: sma Get Plugin or Get Source (quiz.sma - 2969 views - 9.1 KB)
File Type: rar quiz_file.rar (1.6 KB, 1918 views)

Last edited by Deviance; 07-08-2007 at 09:10. Reason: New version
Deviance is offline
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 06-26-2006 , 10:29   Re: Quiz
Reply With Quote #2

nice, Gj
k007 is offline
Send a message via MSN to k007
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 06-26-2006 , 11:15   Re: Quiz
Reply With Quote #3

Great idea sounds like a good one for fun servers especially
SubStream is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-26-2006 , 14:28   Re: Quiz
Reply With Quote #4

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

Last edited by Deviance; 06-28-2006 at 12:06.
Deviance is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 06-26-2006 , 15:23   Re: Quiz
Reply With Quote #5

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...
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
VEN
Veteran Member
Join Date: Jan 2005
Old 06-26-2006 , 15:54   Re: Quiz
Reply With Quote #6

Definitely a good idea.
Q/A databaze, point system will make it even more interesting.
VEN is offline
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-26-2006 , 18:18   Re: Quiz
Reply With Quote #7

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

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

Last edited by Deviance; 06-27-2006 at 16:53.
Deviance is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 06-27-2006 , 03:54   Re: Quiz
Reply With Quote #8

EDIT: How do you delete posts?
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.

Last edited by Lord_Destros; 06-27-2006 at 03:56.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-27-2006 , 09:51   Re: Quiz
Reply With Quote #9

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.

Last edited by Xanimos; 06-27-2006 at 12:58.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 06-27-2006 , 11:02   Re: Quiz
Reply With Quote #10

Thanks for the thoughts, this has been fixed

Last edited by Deviance; 06-27-2006 at 13:17.
Deviance is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:37.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode