SA-MP Forums Archive
[FilterScript] [FS] Maths system v2 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Maths system v2 (/showthread.php?tid=53947)

Pages: 1 2


[FS] Maths system v2 - Zezombia - 25.10.2008

Maths system, basically it calls out an equation, and you answer it to gain score.
Every time there's a -, the score is bumped +10, every time there's a +, the score gets bumped +5.
[0]With v2, you can choose how often it shouts out a new equation.

If no one answers the question, the score gets added to the score value of the next question, and so on.

=> /Answer [answer] to answer the questions.
v2:
=> /Startmaths [timer (seconds)] to start the math questions.
=> /Stopmaths to stop the maths.

Pic:


Download:
v2:
.amx + .pwn via Zezombia
.amx + .pwn via UploadFFS
.pwn via Pastebin

v1:
.amx + .pwn via UploadFFS
.pwn via Pastebin



Re: [FS] Maths system - MenaceX^ - 25.10.2008

Hehehehehe, Very very very very nice! :P

Thanks =D


Re: [FS] Maths system - miokie - 25.10.2008

Lol, I like!



Maybe make a script for school purposes with loads of different types of questiosn from different subjects..


Re: [FS] Maths system - fiordas - 25.10.2008

Nice work! You can now play and learn at the same time


Re: [FS] Maths system - cocakiller - 29.10.2008

Too late


Re: [FS] Maths system - Danut - 06.11.2008

oh it's good ... but u know what's the bad thing ? why u didn't make a command sound like : /startmaths ... and to start the "event"


Re: [FS] Maths system - Rks25 - 06.11.2008

Quote:
Originally Posted by Danut
oh it's good ... but u know what's the bad thing ? why u didn't make a command sound like : /startmaths ... and to start the "event"
Hard isn't it?
pawn Code:
if (strcmp("/maths", cmd, true) == 0)
{
  Maths();
  return 1;
}



Re: [FS] Maths system - Yeatric - 06.11.2008

Nice..!!


Re: [FS] Maths system - shitbird - 06.11.2008

Nice one Zez.


Re: [FS] Maths system - MenaceX^ - 06.11.2008

Quote:
Originally Posted by Rks_
Quote:
Originally Posted by Danut
oh it's good ... but u know what's the bad thing ? why u didn't make a command sound like : /startmaths ... and to start the "event"
Hard isn't it?
pawn Code:
if (strcmp("/maths", cmd, true) == 0)
{
  Maths();
  return 1;
}
lol xD


Re: [FS] Maths system - Mrkrabz - 06.11.2008

Heh, Love it gona test in a min


Re: [FS] Maths system - extra - 06.11.2008

Nice but.. i hate school xD


Re: [FS] Maths system - Danut - 08.11.2008

me too


Re: [FS] Maths system - Danut - 08.11.2008

Quote:
Originally Posted by Rks_
Quote:
Originally Posted by Danut
oh it's good ... but u know what's the bad thing ? why u didn't make a command sound like : /startmaths ... and to start the "event"
Hard isn't it?
pawn Код:
if (strcmp("/maths", cmd, true) == 0)
{
  Maths();
  return 1;
}
and another command like /stopmaths ?


Re: [FS] Maths system - DonGic4 - 08.11.2008

Oh noes, math isn't really my favourite.


Re: [FS] Maths system - Rks25 - 08.11.2008

Quote:
Originally Posted by Danut
Quote:
Originally Posted by Rks_
Quote:
Originally Posted by Danut
oh it's good ... but u know what's the bad thing ? why u didn't make a command sound like : /startmaths ... and to start the "event"
Hard isn't it?
pawn Код:
if (strcmp("/maths", cmd, true) == 0)
{
  Maths();
  return 1;
}
and another command like /stopmaths ?
pawn Код:
new timer;

timer = SetTimer(......

if (strcmp("/stopmaths", cmd, true) == 0)
{
  KillTimer(timer);
  return 1;
}
Something like this?


Re: [FS] Maths system - Danut - 09.11.2008

pawn Код:
new timer;
    timer = SetTimer(1000000,1);

    if (strcmp("/stopmaths", cmd, true) == 0)
    {
    KillTimer(timer);
    return 1;
    }
don't works : maths.pwn(7 : error 035: argument type mismatch (argument 1)

line 78 : timer = SetTimer(1000000,1);



Re: [FS] Maths system - Rks25 - 09.11.2008

Quote:
Originally Posted by Danut
pawn Код:
new timer;
    timer = SetTimer(1000000,1);

    if (strcmp("/stopmaths", cmd, true) == 0)
    {
    KillTimer(timer);
    return 1;
    }
don't works : maths.pwn(7 : error 035: argument type mismatch (argument 1)

line 78 : timer = SetTimer(1000000,1);
pawn Код:
timer = SetTimer("Maths",100000000,1);



Re: [FS] Maths system - caribe88 - 09.11.2008

Very nice system but i have one question
How can i put this when someone wins to give cash no score?

Thanks



Re: [FS] Maths system - Danut - 09.11.2008

don't works nathing happend