AlliedModders

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

Silencer123 09-12-2006 17:33

Maths Genius
 
1 Attachment(s)
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!
;)

SweatyBanana 09-12-2006 17:37

Re: Maths Genius
 
Try spreading out your description a bit...Kinda hard to read.

Silencer123 09-12-2006 17:40

Re: Maths Genius
 
Better that way? ^^

Emp` 09-12-2006 19:13

Re: Maths Genius
 
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 :wink:

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 :wink:

Silencer123 09-13-2006 07:25

Re: Maths Genius
 
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!
:grrr:

Hawk552 09-13-2006 16:40

Re: Maths Genius
 
Amazing, maybe you can make CS players smarter than a bowl of yogurt (and by that I mean all of them combined) with this.

Charming 09-13-2006 16:48

Re: Maths Genius
 
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.

Silencer123 09-13-2006 16:54

Re: Maths Genius
 
Quote:

Originally Posted by Charming (Post 380694)
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.
:grrr:

Zenith77 09-14-2006 12:27

Re: Maths Genius
 
Quote:

Originally Posted by Silencer123 (Post 380578)
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!
:grrr:

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);

Silencer123 09-14-2006 14:04

Re: Maths Genius
 
the problem is if we got something like 97/95 or so. u cant do that with ur brain now can u?


All times are GMT -4. The time now is 02:47.

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