Raised This Month: $ Target: $400
 0% 

Reaction Test V1.2 [Updated 29.5.2015]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
wEight
BANNED
Join Date: Jan 2015
Old 05-01-2015 , 13:26   Reaction Test V1.2 [Updated 29.5.2015]
Reply With Quote #1

Reaction Test

1.2


Description
This little quiz-like plugin generates a random number at a time (Editable with cvars), unlike the quiz plugin this simply requires typing speed at first place. First player who types the number correctly wins a round. Now you can see your react wins (How many reaction tests have you won) and a top 15.

Thanks to (For nVault)
* Kia
* Bugsy

Commands (Chat)
PHP Code:
/rtestwins //Shows you your react wins
/rtesttop15 //Displays Top 15 Motd 
Cvars
PHP Code:
"rtest_frequency"
// Time for a number to generate
// DEFAULT: 60.0

"rtest_cashreward"
// Cash Reward
// DEFAULT: 7500

"rtest_timelimit"
// Time for a round to expire (Make sure that rtest_frequency is greater than this)
// DEFAULT: 30.0

"rtest_msgtype <0|1>"
// Number display type (0 - chat|1 - HUD)
// DEFAULT: 0

"rtest_hudcolor <0|1>"
// HUD Color (0 - GREEN|1 - BLUE) < If rtest_msgtype is 1
// DEFAULT: 0

"rtest_mindigits"
// Number of min. digits for the number to generate (If you want 3 digits, don't use "3", use any number with exactly 3 digits, etc.)
// DEFAULT: 100

"rtest_maxdigits"
// Number of max. digits for the number to generate (If you want less or more, just add or remove 9s or type any number)
// DEFAULT: 9999999 
Changelog
Code:
V1.0
* First Release

V1.1
* Added HUD Display (Check cvars)
* Added Multilingual Support
* Fixed reward

V1.2
* nVault support
* Added Top15
* Show your reaction wins personally
Attached Files
File Type: sma Get Plugin or Get Source (rtestgame.sma - 908 views - 14.2 KB)
File Type: txt rtestgame.txt (809 Bytes, 254 views)

Last edited by wEight; 05-29-2015 at 12:31.
wEight is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-01-2015 , 13:32   Re: Reaction Test Quiz
Reply With Quote #2

There should be an option to reward something else than money (e. g. ZP Ammo Packs, Custom Currency)
__________________
Kia is offline
wEight
BANNED
Join Date: Jan 2015
Old 05-02-2015 , 15:10   Re: Reaction Test Quiz
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
There should be an option to reward something else than money (e. g. ZP Ammo Packs, Custom Currency)
Do i have to go into the ZP Shop plugin and put the code from the quiz in it or.. which means I'm making a ZP Shop with a quiz...
wEight is offline
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 05-03-2015 , 02:04   Re: Reaction Test Quiz
Reply With Quote #4

Quote:
Originally Posted by wEight View Post
Do i have to go into the ZP Shop plugin and put the code from the quiz in it or.. which means I'm making a ZP Shop with a quiz...
I think he wants to have a zp-support version.
Btw I love the idea, gonna check this soon.
__________________

Last edited by Shiina.Mashiro; 05-03-2015 at 02:05.
Shiina.Mashiro is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 05-03-2015 , 02:23   Re: Reaction Test Quiz V1.1 [Updated 3.5.2015]
Reply With Quote #5

I mean there should be an easy way to support any custom reward and not only cs money.
__________________
Kia is offline
Kz1.0
Senior Member
Join Date: Jan 2013
Location: Vietnam
Old 05-03-2015 , 04:43   Re: Reaction Test Quiz V1.1 [Updated 3.5.2015]
Reply With Quote #6

You can create a forward called when player type the correct number.
Kz1.0 is offline
wEight
BANNED
Join Date: Jan 2015
Old 05-03-2015 , 14:25   Re: Reaction Test Quiz V1.1 [Updated 3.5.2015]
Reply With Quote #7

Quote:
Originally Posted by Kz1.0 View Post
You can create a forward called when player type the correct number.
You mean this?
PHP Code:
new text[32]
read_argv(1,text,31)
new 
answer str_to_num(text
wEight is offline
wEight
BANNED
Join Date: Jan 2015
Old 05-24-2015 , 14:12   Re: Reaction Test Quiz V1.1 [Updated 3.5.2015]
Reply With Quote #8

Quote:
Originally Posted by Kia View Post
I mean there should be an easy way to support any custom reward and not only cs money.
I tried score(frags) and HP, but something went wrong and i focused on this update more...
wEight is offline
Reply



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 06:15.


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