edited 2×, last 29.05.19 12:45:47 pm
Forum
CS2D Scripts :notok::notok:
3 replies 1
1
2
3
4
5
6
2
3
4
5
6
addhook("objectkill","kl") function kl(id) 	if id>0 then 		parse("setscore "..id.." "..(player(id,"score")+2)) 	end end
It has two arguments - object id (which you wrote) and player id (which you didn't write)
so the correct way would be
1
2
3
4
2
3
4
addhook("objectkill","_ob_ki") function _ob_ki(id,p) 	parse("setscore "..p.." "..player(p,"score")+2) end
edited 1×, last 29.05.19 12:38:05 pm
1