vinexX Posted December 22, 2016 Share Posted December 22, 2016 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) 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... por favor si es posible me eliminan el post me equivoque de lugar Link to comment
pa3ck Posted December 22, 2016 Share Posted December 22, 2016 Either post it to your language section or explain your problem in English. Link to comment
Arran Posted December 22, 2016 Share Posted December 22, 2016 There is an error on line 1: addEventHandler("onPlayerWasted", getLocalPlayer() This script is server sided so change 'getLocalPlayer()' to 'root'. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now