Advertisement
RaZgRiZ

Small Stats GUI 1.0

Sep 29th, 2011
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. bind p [showgui pstats; onrelease cleargui]
  2.  
  3. newgui pstats [
  4.   pst = [result (concat (getfrags) (getdeaths) (getaccuracy) (getflags) (substr (min 999999 (gettotaldamage)) 0 6) (substr (min 999999 (- (gettotalshots) (gettotaldamage))) 0 6) (substr (divf (maxf 0.0 (getfrags)) (max 1 (getdeaths))) 0 4) (substr (minf 999999 (divf (gettotaldamage) (max 1 (getdeaths)))) 0 6))]
  5.     guilist [
  6.         guilist [
  7.             guitext "^f7Kills" 0
  8.             guitext "^f7Deaths" 0
  9.             guitext "^f7Accuracy" 0
  10.             if (m_ctf (getmode)) [guitext "^f7Flags Scored" 0]
  11.             guibar
  12.             guitext "^f7Damage Dealt" 0
  13.             guitext "^f7Damage Wasted" 0
  14.             guibar
  15.             guitext "^f7KpD" 0
  16.             guitext "^f7DDpD" 0
  17.         ]
  18.         guilist [
  19.             guitext (concat "^f7 :^f2" (at (pst) 0)) 0
  20.             guitext (concat "^f7 :^f2" (at (pst) 1)) 0
  21.             guitext (concatword "^f7 :^f2 " (at (pst) 2) "^%") 0
  22.             if (m_ctf (getmode)) [guitext (concat "^f7 :^f2" (at (pst) 3)) 0]
  23.             guibar
  24.             guitext (concat "^f7 :^f2" (at (pst) 4)) 0
  25.             guitext (concat "^f7 :^f2" (at (pst) 5)) 0
  26.             guibar
  27.             guitext (concat "^f7 :^f2" (at (pst) 6)) 0
  28.             guitext (concat "^f7 :^f2" (at (pst) 7)) 0
  29.         ]
  30.     ]
  31. ] "Personal Stats"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement