AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Fast typing event (https://forums.alliedmods.net/showthread.php?t=195687)

floatman 09-10-2012 10:34

Fast typing event
 
2 Attachment(s)
Description:
Every x seconds (x is a CVAR), the plugin is creating a new set of random chars and prints it as a hud message. The player who types first these chars is rewarded with an amount of money (CVAR). The array which stores the set is being cleared after x secs after the message is printed (x is a CVAR).

Cvars:
fastev_responsetime (default: 20.0)
fastev_moneyprize (default: 5000)
fastev_repeattime (default: 120.0)
fastev_randomamount (default: 1)
fastev_randommin (default: 500)
fastev_randommax (default: 5000)
fastev_hudtime (default: 25.0)

Note: if you have the fastev_randomamount CVAR set to 1, the fastev_moneyprize will be ignored.


Modules:
cstrike
nvault (3.0 -)

ML (1.0 - 2.1 versions):
PHP Code:

[en] - floatman
[lt] - BeasT
[ro] - AleeKz
[pt] - quilhos
[es] - lucas_7_94 



ML (2.2 - 3.1 versions):
PHP Code:

[en] - floatman
[ro] - AleeKz
[sk] - luki1412
[tr] - Erdener 




ML (3.2 - current versions):
PHP Code:

[en] - floatman
[de] - UchihaSkills 



Changelog:
PHP Code:

        3.2     code optimization
        3.1     
added a cvar to help you handle the holdtime of the hud message
        3.0     
major improvement in the code;
                 - 
nvault required;
                 - 
the restriction system is now using steam ids to ban users from participating to the event
         
2.3     cvar for a random amount of money (as a prize)
        
2.2     added a restriction system for players
        2.1     
temporary solution for % and ;
        
2.0     - new random system
                 
code optimization
        
        1.0     
first release 

Please report any mistakes, bugs etc.

BeasT 09-10-2012 11:03

Re: Fast typing event
 
Nice :fox:

Code:

[lt]
NEW_CODE = Ivesk siuos simbolius, kad laimetum pinigini priza:
ANNOUNCE_WINNER = %s laimejo %d$.


AleeKz 09-10-2012 12:21

Re: Fast typing event
 
Cool.

Here it's the romanian translation :

Code:

[ro]
NEW_CODE = Scrie urmatoarele caractere pentru a primi un premiu in bani:
ANNOUNCE_WINNER = %s a castigat %d$.


kiki33hun 09-10-2012 13:35

Re: Fast typing [EVENT]
 
Haha, good joob!

mabaclu 09-13-2012 11:55

Re: Fast typing event
 
Make it random so that the letters are shown from 30 seconds before to 30 seconds after the time set in the CVAR.

floatman 09-13-2012 13:25

Re: Fast typing event
 
Quote:

Originally Posted by mabaclu (Post 1798299)
Make it random so that the letters are shown from 30 seconds before to 30 seconds after the time set in the CVAR.

You want me to extend the holdtime of the hud message?

quilhos 09-13-2012 17:14

Re: Fast typing event
 
Code:

[pt]
NEW_CODE = Escreve os seguintes caracteres para ganhares um premio (dinheiro):
ANNOUNCE_WINNER = %s ganhou %d$.


fysiks 09-13-2012 19:10

Re: Fast typing event
 
  • There is a lot of excessive code.
  • Characters are not entirely random.
  • There is a much better way to do this if you want random characters in the code string.

YamiKaitou 09-13-2012 19:33

Re: Fast typing event
 
A few improvements

Spoiler


Spoiler


Spoiler


Spoiler


Spoiler


Spoiler

lucas_7_94 09-13-2012 20:36

Re: Fast typing event
 
@Yami , array_set doesnt exist , i think you mean arrayset.


All times are GMT -4. The time now is 13:28.

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