get 1$ money from killing zombies not 300$
7 replies



Get creative.
Code:
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
function yourself(vic,kil)
if (player(vic,"team") == 1) then
parse("setmoney "..kil.. "..player(kil,"money")-299)
end
end
Share time limited free games here

@
Bowlinghead: thanks
Edit:can you make display money at postion 100 200

Edit:can you make display money at postion 100 200
edited 4×, last 01.11.20 09:47:17 pm
Nothing simpler than that:
Code:
1
2
3
4
2
3
4
addhook("always","j")
function j()
parse("hudtxt 69 money 100 200")
end
function j()
parse("hudtxt 69 money 100 200")
end
Share time limited free games here

@
Bowlinghead:

Code:
like this but money 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")
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")

Get creative.
Code:
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
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

@

Code:
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")
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")
Muh



