Advertisement
RaZgRiZ

Small Stats GUI 1.1 SVN

Nov 13th, 2011
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bind p [showgui stats; onrelease cleargui]
  2.  
  3. newgui stats [
  4.     local tmp
  5.     tmp = (concat (getfrags) (getdeaths) (getaccuracy) (getflags) (
  6.         substr (min 999999 (gettotaldamage)) 0 6
  7.     ) (
  8.         substr (min 999999 (- (gettotalshots) (gettotaldamage))) 0 6
  9.     ) (
  10.         substr (divf (max 0 (getfrags)) (max 1 (getdeaths))) 0 4
  11.     ) (
  12.         substr (minf 999999 (divf (gettotaldamage) (max 1 (getdeaths)))) 0 6
  13.     ))
  14.     guilist [
  15.         guilist [
  16.             guitext "^f7Kills" 0
  17.             guitext "^f7Deaths" 0
  18.             guitext "^f7Accuracy" 0
  19.             cond (m_ctf (getmode)) [
  20.                 guitext "^f7Flags Scored" 0
  21.             ] (m_collect (getmode)) [
  22.                 guitext "^f7Skulls Collected" 0
  23.             ]
  24.             guibar
  25.             guitext "^f7Damage Dealt" 0
  26.             guitext "^f7Damage Wasted" 0
  27.             guibar
  28.             guitext "^f7KpD" 0
  29.             guitext "^f7DDpD" 0
  30.         ]
  31.         guilist [
  32.             guitext (concat "^f7 :^f2" (at $tmp 0)) 0
  33.             guitext (concat "^f7 :^f2" (at $tmp 1)) 0
  34.             guitext (concatword "^f7 :^f2 " (at $tmp 2) "^%") 0
  35.             if (|| (m_collect (getmode)) (m_ctf (getmode))) [
  36.                 guitext (concat "^f7 :^f2" (at $tmp 3)) 0
  37.             ]
  38.             guibar
  39.             guitext (concat "^f7 :^f2" (at $tmp 4)) 0
  40.             guitext (concat "^f7 :^f2" (at $tmp 5)) 0
  41.             guibar
  42.             guitext (concat "^f7 :^f2" (at $tmp 6)) 0
  43.             guitext (concat "^f7 :^f2" (at $tmp 7)) 0
  44.         ]
  45.     ]
  46. ] "Personal Stats"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement