iFoReX Posted January 10, 2013 Share Posted January 10, 2013 ams estoy editando un viejo resource que tenia, y resulta que cuando un player mata a un zombie se me cambia a mi y yo veo sus stats zKills = "-" Rank = "-" outputChatBox("#48FF00##2E2E2EFeatures System #48FF00Created By #000000PGS//#00ffffGatito",0,0,0,true) function hideIt(Kills,Ranks) zKills = Kills Rank = Ranks end addEvent("lolEvent",true) addEventHandler("lolEvent",root,hideIt) addEventHandler("onClientRender", root, function() dxDrawText("#48FF00##2E2E2EZombie Kills : #48FF00#"..tostring(zKills).." \n#48FF00##2E2E2ERango : #48FF00#"..tostring(Rank), 0, 430, 547, 442, tocolor(0, 255, 251, 255), 1,"pricedown", "left", "center", false, false, true, true, false) end ) function onZombieWasted(_,killer) if (killer) then if (getElementType(killer) == "player") and (getElementType(source) == "ped") then if (getElementData(source, "zombie") == true) then local account = getPlayerAccount(killer) if account and not isGuestAccount(account) then local Kills = getAccountData(account,"Zombie kills") local Ranks = getAccountData(account,"Rango") triggerClientEvent("lolEvent",killer,Kills,Ranks) end end end end end addEventHandler("onPedWasted", root, onZombieWasted) PD : yo soy Gatito lol PD2 : Probe con triggerClientEvent(killer,"lolEvent",killer,Kills,Ranks) y tampoco funciona Link to comment
Arsilex Posted January 10, 2013 Share Posted January 10, 2013 si lo has creado tu creo que deberías saber como arreglarlo no crees? function onZombieWasted(totalAmmo, killer, killerWeapon, bodypart) if (killer) then if (getElementType(killer) == "player") and (getElementType(source) == "ped") then if (getElementData(source, "zombie") == true) then local account = getPlayerAccount(killer) if account and not isGuestAccount(account) then local Kills = getAccountData(account,"Zombie kills") local Ranks = getAccountData(account,"Rango") triggerClientEvent("lolEvent",killer,Kills,Ranks) end end end end end addEventHandler("onPedWasted", root, onZombieWasted) prueba asi Link to comment
Recommended Posts