Advertisement
KimKat

Lua script optimized for 'sS.

Mar 7th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. addhook("hit","onhit");addhook("move","onmove");addhook("ms","onms");function onhit(v,s,w,h,a) if h>0 then st[s]=v;st_h[s]=player(v,"health")-h end end;function onmove() for p=1,pl_count do if player(p,"exists")and player(p,"health")>0 then local t=st[p];sp[p]=(320+(player(t,'x')-player(p,'x')))..' '..(240+(player(t,'y')-player(p,'y')));parse('hudtxtmove '..p..' 14 0 '..sp[p])end end end;function onms() for i=1,pl_count do if player(i,"exists")and player(i,"health")>0 then if st_h[i]>0 then parse('hudtxt2 '..i..' 14 "©255000000HP('..st_h[i]..')"  '..sp[i]..' 1') else parse('hudtxt2 '..i..' 14 "" 320 240 0')end end end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement