SA-MP Forums Archive
[FilterScript] Reaction Tests v1.0 - 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] Reaction Tests v1.0 (/showthread.php?tid=253507)

Pages: 1 2 3


Reaction Tests v2.0 - Zh3r0 - 06.05.2011

Reaction Tests v2.0

Description
- First of all,

I know there are tons of these scripts, don't come up bullshitting please, I'm very aware of this fact.
All i wanted is to test my new "style" in scripting, because I decided to forget the [ spaces ][ between ][ braces ].
Honestly? I like it this way now.

Features
V1.0
  1. Three reaction tests, Mathematics, Reaction and Custom messsage reaction.
  2. You can add static messages under OnFilterScriptInit.
  3. In-Game use /start to show informations about the command, it has 4 params(you choose)
  4. When using /start message without a 2nd param, a message from the ones you set inside your script will be shown, but when you use /start message This is a text! players must type This is a text! to win the prize.
  5. You can use in console !showmsgs to list all the messages from inside script, or use in-game /rcon !showmsgs
  6. When someones wins, it will store his name into a variable and use later when a player tries to answer and the system will tell him that the player x answered first!
V2.0
  1. Added Quiz Test. You get a question and 4 options.
  2. Use CreateQuiz on OnFilterScriptInit to creat a Quiz Question.
  3. Now it saves in files, who when and what was the answer.(On all 4 reactions).
    From inside the Quiz Winners.txt
    Code:
    9/5/2011 at 17:46:29
    ----------------------------------
    Question: Who is the president of the United States?
    Answer: a) Barack Obama
    Winner: Zh3r0
    Took: 8893 ms
    ----------------------------------
  4. It will show the time elapsed until you answered.
Maybe V3.0 ?
  1. If there would be a 3.0, I don't know, for sure I will add the Top 3 fastest writers!
  2. If so, I would be using SQLite.
Screenshots

V1.0















V2.0







Download

V1.0 Without the Quiz Test
solidfiles < - Direct
pastebin


V2.0 With the Quiz Test
solidfiles < - Direct
pastebin


* Warning: Version 2.0 saves 4 files in /server/scriptfiles.



* Enjoy!


Re: Reaction Tests v1.0 - Phanto90 - 06.05.2011

So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
However nothing special, but good way of scripting


Re: Reaction Tests v1.0 - Zh3r0 - 06.05.2011

Quote:
Originally Posted by Phanto90
View Post
So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
I used that for sure dude FO' SHO'! I see no freakin' differences ! really, i don't.

Kay, stop acting like a smartass thanks.
And yeah, using spaces between braces is indeed a style.


Re: Reaction Tests v1.0 - Phanto90 - 06.05.2011

Quote:
Originally Posted by Zh3r0
View Post
I used that for sure dude FO' SHO'! I see no freakin' differences ! really, i don't.

Kay, stop acting like a smartass thanks.
And yeah, using spaces between braces is indeed a style.
stop acting smartass з.з (when the hell did I act like a smartass ._.' A random string generator make me smart? Don't think so.)
I did not want to criticise you in any way, why are you so offensive?? D:
I know you are good at scripting by seeing your release, dude i'm sorry if you took that post as an insult

Quote:
Originally Posted by Phanto90
but good way of scripting
Maybe this? It was not sarcastic ._.


Re: Reaction Tests v1.0 - NotoriousMOB - 06.05.2011

very nice man.


Re: Reaction Tests v1.0 - Steve* - 06.05.2011

your new style is way better, i have the same style.


Re: Reaction Tests v1.0 - ExTro - 06.05.2011

Nice, i like it


Re: Reaction Tests v1.0 - misho1 - 07.05.2011

can u plz make the reaction test show randomly without use any cmds


Re: Reaction Tests v1.0 - [MWR]Blood - 07.05.2011

Quote:
Originally Posted by misho1
View Post
can u plz make the reaction test show randomly without use any cmds
Can't you make it yourself?
It's very easy, just set up a timer.


Re: Reaction Tests v1.0 - Ironboy - 07.05.2011

Good job


Re: Reaction Tests v1.0 - Zh3r0 - 07.05.2011

Quote:
Originally Posted by Delux13
View Post
Can\'t you make it yourself?

It\'s very easy, just set up a timer.
There actually is a timer! It shows every 3 minutes.

You can change the delay from above the script.

pawn Code:
#define INTERVAL         \
        (3 * 60 * 1_000)
^^^ Change the 3 with another minute.


@ Phanto90 - Honestly? I though you were actually "attacking" me.

I did not use your function because it is very old, i used the Triadic version which is faster.

And as you can see, you edited your post for like 3 times and i quoted it without the last part..


Re: Reaction Tests v1.0 - [RsM]XpLoD - 07.05.2011

good job


Re: Reaction Tests v1.0 - ColdIce - 07.05.2011

Nice work, I\'m using it. Like it


Re: Reaction Tests v1.0 - Kyle - 07.05.2011

Quote:
Originally Posted by Phanto90
View Post
So this new style consist only in spaces between braces Lulz
The random string generator reminds me a stupid function I posted some day ago
PRandomString Generator LuLz
However nothing special, but good way of scripting
Stop being a fag and have some respect for regular contributers.


Re: Reaction Tests v1.0 - nGen.SoNNy - 07.05.2011

Nice one


Re: Reaction Tests v1.0 - Hiddos - 07.05.2011

I\'m surprised I haven\'t seen scripts like these around the forums though they\'re rather common on public servers. Small script, but then again this is one of the things that proofs that fun doesn\'t requires complex ideas.

Just a tip: What about \'Question: Answer\' tests? As in the script tells you a question, for example \'Which country is often called a \'land down under\' ?\'. Then the players are supposed to answer \'Australia\'. Maybe a good idea for an update.


Re: Reaction Tests v1.0 - Stigg - 07.05.2011

Great job, works well.


Re: Reaction Tests v1.0 - Zh3r0 - 07.05.2011

Quote:
Originally Posted by Hiddos
View Post
I\'m surprised I haven\'t seen scripts like these around the forums though they\'re rather common on public servers. Small script, but then again this is one of the things that proofs that fun doesn\'t requires complex ideas.


Just a tip: What about \'Question: Answer\' tests? As in the script tells you a question, for example \'Which country is often called a \'land down under\' ?\'. Then the players are supposed to answer \'Australia\'. Maybe a good idea for an update.
I indeed had fun writing it. I had in mind to implant a Trivia too with Questions and 4 choices, a,b,c,d.

But that would look horrible in chat, as it occupies 5-6 lines for one question and it might disappear when server is crowded and there are many chatters.

So i thought about making it with Textdraws ?


Or, sending a message to all like:

A new Trivia question is available! Check /cmd.


A Dialog pops up with the question and the choices and of course there is the input style.


Which one would be good? I might to v1.1 on this.


Re: Reaction Tests v1.0 - BizzyD - 07.05.2011

Very nice I like it! 10/10


Re: Reaction Tests v1.0 - BASITJALIL - 08.05.2011

Nice work useful for TDM Servers