bind p [showgui stats; onrelease cleargui] newgui stats [ _str = ( concat (getfrags) (getdeaths) (getaccuracy) (getflags) ( substr (min 999999 (gettotaldamage)) 0 6 ) ( substr (min 999999 (- (gettotalshots) (gettotaldamage))) 0 6 ) ( substr (divf (max 0 (getfrags)) (max 1 (getdeaths))) 0 4 ) ( substr (minf 999999 (divf (gettotaldamage) (max 1 (getdeaths)))) 0 6 ) ) guilist [ guilist [ guitext "^f7Kills" 0 guitext "^f7Deaths" 0 guitext "^f7Accuracy" 0 if (m_ctf (getmode)) [guitext "^f7Flags Scored" 0] guibar guitext "^f7Damage Dealt" 0 guitext "^f7Damage Wasted" 0 guibar guitext "^f7KpD" 0 guitext "^f7DDpD" 0 ] guilist [ guitext (concat "^f7 :^f2" (at $_str 0)) 0 guitext (concat "^f7 :^f2" (at $_str 1)) 0 guitext (concatword "^f7 :^f2 " (at $_str 2) "^%") 0 if (m_ctf (getmode)) [guitext (concat "^f7 :^f2" (at $_str 3)) 0] guibar guitext (concat "^f7 :^f2" (at $_str 4)) 0 guitext (concat "^f7 :^f2" (at $_str 5)) 0 guibar guitext (concat "^f7 :^f2" (at $_str 6)) 0 guitext (concat "^f7 :^f2" (at $_str 7)) 0 ] ] ] "Personal Stats"