--HEADSHOT SCRIPT BY CRAWIS
addhook("kill","headshot")
function headshot(killer,victim,weapon,x,y)
local awp = math.random(1,2)
local smg = math.random(1,8)
local m4a1 = math.random(1,4)
local ak47 = math.random(1,5)
local scout = math.random(1,3)
local melee = math.random(1,14)
local rifle = math.random(1,6)
local laser = math.random(1,2)
local pistol = math.random(1,8)
local deagle = math.random(1,2)
local sniper = math.random(1,4)
local shotgun = math.random(1,10)
local machinegun = math.random(1,9)
if(weapon==35) then
if(awp==2) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot2.wav")
parse("setscore "..killer.." "..player(killer,"score").."+1")
end
end
if(weapon==34) then
if(scout==3) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot2.wav")
parse("setscore "..killer.." "..player(killer,"score").."+2")
end
end
if(weapon==50 or weapon==69 or weapon==74 or weapon==78 or weapon==85) then
if(melee==5) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==3) then
if(deagle==2) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot2.wav")
parse("setscore "..killer.." "..player(killer,"score").."+1")
end
end
if(weapon==10 or weapon==11) then
if(shotgun==3 or shotgun==7) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==1 or weapon==2 or weapon==4 or weapon==5 or weapon==6) then
if(pistol==4 or pistol==8) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==20 or weapon==21 or weapon==22 or weapon==23 or weapon==24) then
if(smg==6) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==38 or weapon==39 or weapon==31 or weapon==33) then
if(rifle==3) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==36 or weapon==37) then
if(sniper==4) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot2.wav")
parse("setscore "..killer.." "..player(killer,"score").."+1")
end
end
if(weapon==40) then
if(machinegun==5) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==32) then
if(m4a1==2) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot2.wav")
end
end
if(weapon==45) then
if(laser==1) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
if(weapon==30) then
if(ak47==5) then
parse("msg
255000000"..player(killer,"name").. " made Headshot! @C")
parse("sv_sound utsfx/headshot.wav")
end
end
end