| View previous topic :: View next topic |
| Author |
Message |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri May 04, 2007 8:19 am Post subject: Time help |
|
|
i running a gaming chan and we record users stats and i have everything set up great but i wanted to add a new command to it but not sure how.
if a user is playing for longer than 60mins then it will say in the channel
Sorry <nick> : game name here : You failed
the u failed bit is only if its over 60 mins
and if they do it in under 60 mins it will say summet like
Congratz <nick > : gane name here : well done you completed the game in time
thx |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri May 04, 2007 11:23 am Post subject: |
|
|
This is related to the game script, so you'll have to show us the script. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Ace-T Halfop
Joined: 29 Aug 2006 Posts: 82
|
Posted: Fri May 04, 2007 4:19 pm Post subject: |
|
|
i have the code working fine bu u need to do !stats so tht is only a matter of changing the bind pub, its just the time part im stuck on,
im sure its prolly fairly easy, even if u can just guide me in the right direction it would be a great help
it basically gathers the times from the mysql db |
|
| Back to top |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri May 04, 2007 7:49 pm Post subject: |
|
|
| Sir_Fz wrote: | | This is related to the game script, so you'll have to show us the script. | If you need help altering a procedure...any procedure... we need to see it  _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri May 04, 2007 9:20 pm Post subject: |
|
|
| If you just want general help, then basically when the player joins the game, you create a new timer with the [timer] command. If the player wins, you can have whatever proc you use to "win" destroy the timer with killtimer. |
|
| Back to top |
|
 |
|