I've got a question:
is it possible to get number of shots?
/ I mean: used bullets
Help, please
Scripts
How many bullets have I used?
How many bullets have I used?
sh = 0
addhook("attack","reload")
function reload(id)
sh = sh+1
parse('hudtxt 5 "©000000255Shots: '..sh..' " 320 432 1')
return 1
end
sheeL: shots={}
addhook("attack","_attack")
addhook("join","_join")
function _attack(id)
	shots[id]=shots[id]+1
	parse('hudtxt2 "..id.." 5 "©000000255Shots: '..shots[id]..' " 320 432 1')
end
function _join(id)
	shots[id]=0
end
That's a pity it doesn't work...
Yates has written
Avo has written
sheeL: sh = 0
addhook("attack","reload")
function reload(id)
sh = sh+1
parse('hudtxt 5 "©000000255Shots: '..sh..' " 320 432 1')
return 1
end
addhook("reload","attack")
function attack(id)
parse('hudtxt 6 "©000000255You Used '..sh..' Balls " 329 452 2')
sh=0
return sh
end
addhook("startround","reloadattack")
function reloadattack()
sh = 0
end
Avo has written
Alistaire: Make it and reply it here. Challenge accepted?
Avo: I've tested it, and it works fine.
Avo has written
Apache uwu: