1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
killpt = 0 addhook("second","revivehud") function revivehud() 	for __,id in pairs(player(0,"table")) do 		if player(id,"exists") then 			parse('hudtxt2 '..id..' 3 "©255000000Kill Streak: '..killpt..'" 123 123') 		end 	end end addhook("die","givinglife") function givinglife(victim,killer,weapon,x,y) ix = player(id,"tilex") iy = player(id,"tiley") 	if killpt[id] == 3 then 		parse("spawnplayer "..victim.." "..ix.." "..iy..") 		parse("equip "..victim.." 32") 		parse("equip "..victim.." 3") 		parse("setarmor "..victim.." 200") killpt[id] = killpt[id] - 3 	end end addhook("kill", "akill") function akill(id, victim, weapon, x, y) killpt = killpt + 1 end
I wrote this all from a scratch without looking at any examples so I think stuff might be wrong... This will be run in Jail server so no respawn until new round. The idea is :
Hud that shows Kill Points
When player kills someone, he gets one kill point.
If the player dies and he has at least 3 kill points, he will respawn at his exact location, get weapons and armor and his killpoints will be reduced by 3
Hope you can tell me what can be wrong here...
EDIT : It doesn't work after I just tested it It gives me kill points when I die too...