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

Fast typing event


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 09-10-2012 , 10:34   Fast typing event
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (fastevent.sma - 2088 views - 6.2 KB)
File Type: txt fastevent.txt (782 Bytes, 827 views)
__________________


Last edited by floatman; 08-09-2013 at 06:09.
floatman is offline
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 09-10-2012 , 11:03   Re: Fast typing event
Reply With Quote #2

Nice

Code:
[lt]
NEW_CODE = Ivesk siuos simbolius, kad laimetum pinigini priza:
ANNOUNCE_WINNER = %s laimejo %d$.
BeasT is offline
Send a message via Skype™ to BeasT
AleeKz
Senior Member
Join Date: Jul 2011
Location: Bucharest,Romania
Old 09-10-2012 , 12:21   Re: Fast typing event
Reply With Quote #3

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$.
AleeKz is offline
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-10-2012 , 13:35   Re: Fast typing [EVENT]
Reply With Quote #4

Haha, good joob!
__________________
kiki33hun is offline
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 09-13-2012 , 11:55   Re: Fast typing event
Reply With Quote #5

Make it random so that the letters are shown from 30 seconds before to 30 seconds after the time set in the CVAR.
__________________
mabaclu is offline
floatman
Senior Member
Join Date: Oct 2009
Location: nowhere.
Old 09-13-2012 , 13:25   Re: Fast typing event
Reply With Quote #6

Quote:
Originally Posted by mabaclu View Post
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?
__________________

floatman is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 09-13-2012 , 17:14   Re: Fast typing event
Reply With Quote #7

Code:
[pt]
NEW_CODE = Escreve os seguintes caracteres para ganhares um premio (dinheiro):
ANNOUNCE_WINNER = %s ganhou %d$.
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!

Last edited by quilhos; 09-13-2012 at 17:14.
quilhos is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-13-2012 , 19:10   Re: Fast typing event
Reply With Quote #8

  • 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.
__________________
fysiks is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-13-2012 , 19:33   Re: Fast typing event
Reply With Quote #9

A few improvements

Spoiler


Spoiler


Spoiler


Spoiler


Spoiler


Spoiler
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 09-13-2012 at 22:16.
YamiKaitou is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 09-13-2012 , 20:36   Re: Fast typing event
Reply With Quote #10

@Yami , array_set doesnt exist , i think you mean arrayset.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Reply



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 07:22.


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