Sauerworld Forum

Show local stats by pressing tab

Salatiel

  • **
  • 73
  • +17/-0
    • Cube Br
Show local stats by pressing tab
« on: January 12, 2018, 12:05:12 pm »
Is a simple bind/script to show local stats (next to the scoreboard) by pressing tab
I know this script is already used a lot, but i decided to make my own version... :b
 


Code: [Select]
bind tab [
scoreboard 1
showfps 0
gamehud = [
myfrags = (getfrags)
myacc = (getaccuracy)
mydeaths = (getdeaths)
myflags = (getflags)
myfps = (getfps)
myfps_color = "^f2"

if (> $myfps 50)[myfps_color = "^f0"]
if (< $myfps 30)[myfps_color = "^f3"]

result (format "^f1FPS %1%2^f1| ^f1KD ^f7%3^f1/^f7%5 ^f1| ^f1Flags ^f7%6^f1| ^f1Acc ^f7%4^f1| ^f2%7" $myfps_color $myfps $myfrags $myacc $mydeaths $myflags (timeremaining 1))
]
onrelease [scoreboard 0 ; gamehud = [] ; showfps 1]

]
copy and paste it into your autoexec.cfg ^