Raised This Month: $12 Target: $400
 3% 

Maths Genius


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   GHW_Chronic (70)
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 09-12-2006 , 17:33   Maths Genius
Reply With Quote #1

Current Version: 2.0
From time to time this Plugins creates an Exercise.
For Example after 60 Seconds with the CVars
adjusted as below an Exercise like this may come:
[MG] Solve: 65+44+72
The Player who answers with the correct answer
first will be awarded with Health and Armor:
say 181

amx_mg_level 2 // Difficulty
amx_mg_tries 2 // Tries for each Exercise
amx_mg_frequency 60.0 // Frequency in Seconds
amx_mg_award_hp 35 // HP Award
amx_mg_award_ap 10 // AP Award

Have Fun!
;)
Attached Files
File Type: sma Get Plugin or Get Source (maths_g.sma - 2888 views - 5.1 KB)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 09-13-2006 at 09:43.
Silencer123 is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 09-12-2006 , 17:37   Re: Maths Genius
Reply With Quote #2

Try spreading out your description a bit...Kinda hard to read.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 09-12-2006 , 17:40   Re: Maths Genius
Reply With Quote #3

Better that way? ^^
__________________
EAT YOUR VEGGIES
Silencer123 is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-12-2006 , 19:13   Re: Maths Genius
Reply With Quote #4

suggestion: add more than addition
Code:
switch(random(3))
{
case 0:{
	format(message, length, "+%d",a)
	solution += a
}
case 1:{
	format(message, length, "-%d",a)
	solution -= a
}
case 2:{
	format(temp, length, message)
	format(message, length, "(%s)/%d",temp,a)
	solution /= a
}
case 3:{
	format(temp, length, message)
	format(message, length, "(%s)*%d",temp,a)
	solution *= a
}
}
too lazy to think of how you would add division and multiplication correctly.

original though

edit: look again, i made a way that might work. another suggestion: try to make it a loop that just repeats based on the cvar

Last edited by Emp`; 09-12-2006 at 19:50.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 09-13-2006 , 07:25   Re: Maths Genius
Reply With Quote #5

multiplication maybe, but division would need floats and everything.
does amxx know point before line calcuting rule?
(3+3*3 is 12, not 18 ((3+3)*3))
EDIT: Important update! Please redownload!
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 09-13-2006 at 09:43.
Silencer123 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 09-13-2006 , 16:40   Re: Maths Genius
Reply With Quote #6

Amazing, maybe you can make CS players smarter than a bowl of yogurt (and by that I mean all of them combined) with this.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Charming
BANNED
Join Date: Nov 2005
Location: Canada
Old 09-13-2006 , 16:48   Re: Maths Genius
Reply With Quote #7

I dont like this idea if there to dumb to pay attention in school what makes you think they'll pay attention in a game.
Charming is offline
Send a message via ICQ to Charming Send a message via AIM to Charming Send a message via MSN to Charming Send a message via Yahoo to Charming
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 09-13-2006 , 16:54   Re: Maths Genius
Reply With Quote #8

Quote:
Originally Posted by Charming View Post
I dont like this idea if there to dumb to pay attention in school what makes you think they'll pay attention in a game.
The Plugin awards them with Health and Armor - Thats why.
__________________
EAT YOUR VEGGIES
Silencer123 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-14-2006 , 12:27   Re: Maths Genius
Reply With Quote #9

Quote:
Originally Posted by Silencer123 View Post
multiplication maybe, but division would need floats and everything.
does amxx know point before line calcuting rule?
(3+3*3 is 12, not 18 ((3+3)*3))
EDIT: Important update! Please redownload!
Or, here is a crazy idea, a bad one, but it might work. Store the value in a string, and convert them with str_to_float(), etc. where ever needed.

Code:
new solution[] = "1337"; new num = str_to_num(solution); // ======================= new solution[] = "867.5309"; new Float:flNum = str_to_float(solution);
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Silencer123
Veteran Member
Join Date: Jul 2006
Location: Germany (GMT+1)
Old 09-14-2006 , 14:04   Re: Maths Genius
Reply With Quote #10

the problem is if we got something like 97/95 or so. u cant do that with ur brain now can u?
__________________
EAT YOUR VEGGIES
Silencer123 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 03:24.


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