Hello, i made a script that plays winning.mp3 and shows a message in chat after a player killed another player
but i dont know if this will work - will this work ?
function wasted (killer, weapon, bodypart)
local killer = attacker()
local sound = playSound("sounds/winning.mp3")
local message = outputChatBox ( #006600• #ffffff"..getPlayerName ( attacker ).." #006600is dangerous!" )
setSoundVolume(sound, 0.5)
end
addEventHandler("onClientPlayerWasted", localPlayer, wasted)