Forum
CS2D Scripts get 1$ money from killing zombies not 300$get 1$ money from killing zombies not 300$
7 replies 1
1
2
3
4
5
6
2
3
4
5
6
addhook("kill","yourself") function yourself(vic,kil) if (player(vic,"team") == 1) then 	parse("setmoney "..kil.. "..player(kil,"money")-299) end end
Edit:can you make display money at postion 100 200
edited 4×, last 01.11.20 09:47:17 pm
1
2
3
4
2
3
4
addhook("always","j") function j() parse("hudtxt 69 money 100 200") end
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function showhealth() for _, id in pairs( player(0, 'table') ) do local HP = player(id, 'health') parse('hudtxt2 ' .. id .. ' 1 "\169255255255Health: ' .. HP .. '" 100 200') end end addhook("always","showhealth")
Bowlinghead has written
Get creative.
1
2
3
4
5
6
2
3
4
5
6
addhook("kill","yourself") function yourself(vic,kil) if (player(vic,"team") == 1) then 	parse("setmoney "..kil.. "..player(kil,"money")-299) end end
This will bug when @(16000-298) but nvm. How many zombies have to be killed aww (just calc some delta)
@ DX:
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function showmuniez() for _, id in pairs( player(0, 'table') ) do local muny= player(id, 'money') parse('hudtxt2 ' .. id .. ' 1 "\169255255255Your inventory holds: ' .. muny.. ' dollarz" 100 200') end end addhook("always","showmuniez")
1