Hello! I want to add to script Headshot NaSH, a function that when the player kill the other player, an badge Headshot appear. Type of CrossFire. I want to know if this is possible. If possible I want a way to do this. Sorry for the errors of the translator.
And of course, always give credit to NaSH.
Admin/mod comment
moved to scripts, made title lowercase, removed pointless "help" phrase... I't is possible. With LUA and a image.
Read the rules!!!
Don't use translators! Headshot script:
1
2
3
4
5
6
7
8
9
local headshot_chance = 10 -- chance of a headshot
math.randomseed(os.time())
function headshot_check(source, victim)
	if ( math.random(1, 100) <= headshot_chance ) then
		parse("customkill "..source.." \"headshot\" "..victim)
	end
end
Its not allowed to use CAPS IN THE TITEL!