Sauerworld Forum

Show local stats by pressing tab

Salatiel

  • ***
  • 116
  • +25/-1
    • Projects by Salatiel
Show local stats by pressing tab
« on: January 12, 2018, 12:05:12 PM »
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 ^
« Last Edit: March 25, 2019, 08:03:21 PM by Salatiel »
@Salatiel#5274