[SELECT ALL] Code:
//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 (c 3) Chrono started!
]
if_conline_has (concatword (c 2) "you scored") [
fctime = (divf $fcchrono 10)
echo (format "%1Time taken to score: %2%3 %1seconds" (c 7) (c 3) $fctime)
sleep 20 [fcchrono = 0; startedcounting = 0; stplp = 1]
]
if_conline_has (concatword (c 2) "you dropped the flag") [
echo (c 3) You failed at scoring
fcchrono = 0
startedcounting = 0
stplp = 1
]
if_conline_has (concatword (c 2) "you lost the flag") [
echo (c 3) You failed at scoring
fcchrono = 0
startedcounting = 0
stplp = 1
]
]
]
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
EDIT: updated with the new color tags :P