Hola amigos me ayudarían a poder arreglar este error ? el error es que quiero que al matar a un denominado "clan" salga un outputChabox diciendo el nombre del clan y los kills que va matando ej : "Clan pitbulls tiene 41 kills." y así valla sumando... estaba intentando por esto pero no me sale nada osea mato al miembro del clan y no me sale el outputChabox...
addEventHandler("onPlayerWasted", getLocalPlayer(), function(killer, weapon, bodypart)
if getElementData(killer, "gang") == "clanwd" then
conteo = getElementData(root,"team1")
setElementData(root,"team1",getElementData(root,"team1") + 1)
outputChatbox("[server] clanwd tiene" ..conteo.. " Kills",root,255,255,0,true)
else
return false
end
end)