(14 Mar 13, 12:44AM)BarricadeX75 Wrote: [cubescript]
//By BarricadeX75/Frenzy, with help from Bukz :D
fcchrono = 0
startedcounting = 0
alias fccincrement [if (= 0 $stplp) [+= fcchrono 1; sleep 100 [fccincrement]]]
add2conloop [
if (= 5 $gamemode) [
if_conline_has " 2you have the enemy flag" [
stplp = 0
if (= 0 $startedcounting) [fccincrement]
sleep 20 [startedcounting = 1]
echo " 3Chrono started!"
]
if_conline_has " 2you scored" [
fctime = (divf $fcchrono 10)
echo (concatword " 7Time taken to score: 3 " $fctime " 7seconds")
sleep 20 [fcchrono = 0; startedcounting = 0; stplp = 1]
]
if_conline_has " 2you dropped the flag" [
echo " 3You failed at scoring"
fcchrono = 0
startedcounting = 0
stplp = 1
]
if_conline_has " 2you lost the flag" [
echo " 3You failed at scoring"
fcchrono = 0
startedcounting = 0
stplp = 1
]
]
]
[/cubescript]
This script will display the amount of time it took you to score each time you score a flag in CTF. (It starts counting as soon as you pick up the enemy flag)
Note that the chronometer will reset if you die or drop the flag by yourself.
This script requires tools.cfg :P
We can't see that binary character ;) Edit your post to use this:
[cubescript]
//By BarricadeX75/Frenzy, with help from Bukz :D
fcchrono = 0
startedcounting = 0
alias fccincrement [if (= 0 $stplp) [+= fcchrono 1; sleep 100 [fccincrement]]]
add2conloop [
if (= 5 $gamemode) [
if_conline_has concatword (c 2) "you have the enemy flag" [
stplp = 0
if (= 0 $startedcounting) [fccincrement]
sleep 20 [startedcounting = 1]
echo concatword (c 3) "Chrono started!"
]
if_conline_has concatword (c 2) "you scored" [
fctime = (divf $fcchrono 10)
echo (concatword (c 7) "Time taken to score: " (c 3) $fctime (c 7) "seconds")
sleep 20 [fcchrono = 0; startedcounting = 0; stplp = 1]
]
if_conline_has concatword (c 2) "you dropped the flag" [
echo concatword (c 3) "You failed at scoring"
fcchrono = 0
startedcounting = 0
stplp = 1
]
if_conline_has concatword (c 2) "you lost the flag" [
echo concatword (c 3) "You failed at scoring"
fcchrono = 0
startedcounting = 0
stplp = 1
]
]
]
[/cubescript]
That should work.