~ FN_Linkin Park
Forum




Points system
2 replies



~ FN_Linkin Park
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
local points = {} addhook("join", "point_reset") addhook("kill","point_increase") function point_reset(id) points[id] = 0 point_update(id) end function point_increase(id) 	if not points[id] then points[id] = 0 return end 	points[id] = points[id] + 1 	point_update(id) end function point_update(id) 	-- update your hudtxt2 here, e.g. 	-- parse("hudtxt2 " .. id .. " 0 \"Points: " .. points[id] or 0 .. "\" 20 20 0") end
edited 1×, last 05.03.11 04:39:23 pm



