Sendy Posted June 2, 2014 Posted June 2, 2014 Would not know to do this it made 200+ blood for every killed player / zombie? and that it gave gamers who are in acl.xml "VIP" please addEvent( "onZombieWasted" ); addEventHandler( "onZombieWasted", getRootElement(), addEventHandler( "onPlayerWasted", getRootElement(), function( killer ) setElementBlood( killer, 100 ); end )
Et-win Posted June 2, 2014 Posted June 2, 2014 A better explanation would be perfect so we can understand it too.
Castillo Posted June 2, 2014 Posted June 2, 2014 That code doesn't make much sense. You have 1 extra addEventHandler, and the function setElementBlood doesn't exist, maybe you meant setElementHealth.
Wisam Posted June 2, 2014 Posted June 2, 2014 That code doesn't make much sense.You have 1 extra addEventHandler, and the function setElementBlood doesn't exist, maybe you meant setElementHealth. No not setElementHealth, cause i think he need this for DayZ gamemode
-.Paradox.- Posted June 3, 2014 Posted June 3, 2014 Use: addEvent("onZombieWasted", true) addEventHandler("onZombieWasted", getRootElement(), function(killer) setElementData(killer, "blood", 100) end)
Sendy Posted June 3, 2014 Author Posted June 3, 2014 Use: addEvent("onZombieWasted", true) addEventHandler("onZombieWasted", getRootElement(), function(killer) setElementData(killer, "blood", 100) end) But if one could only please as I wrote it and I thank this does not work this what you wrote it works it'll add 200 + blood? or take off?
-.Paradox.- Posted June 3, 2014 Posted June 3, 2014 (edited) I can not understand you. Please be clear in what you are saying. Edited June 4, 2014 by Guest
Sendy Posted June 4, 2014 Author Posted June 4, 2014 I can not understand you.Please be clear in what ypu are saying. That it gave every player that is in acl.xml "VIP" 200+ Blood supposedly added him .. when killing players / zombies already understand me?
#Al-Ha[J]aRii Posted June 4, 2014 Posted June 4, 2014 I can not understand you.Please be clear in what ypu are saying. That it gave every player that is in acl.xml "VIP" 200+ Blood supposedly added him .. when killing players / zombies already understand me? you want if player in acl group "VIP" and kill zombie will got 200+ Blood ?
Sendy Posted June 4, 2014 Author Posted June 4, 2014 I can not understand you.Please be clear in what ypu are saying. That it gave every player that is in acl.xml "VIP" 200+ Blood supposedly added him .. when killing players / zombies already understand me? you want if player in acl group "VIP" and kill zombie will got 200+ Blood ? Yes but zombies
Max+ Posted June 6, 2014 Posted June 6, 2014 is this what you want ? addEventHandler('onZombieWasted', resourceRoot, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if ( attacker ) and ( getElementType ( source ) == 'ped' ) then setElementData(attacker, "blood", 100) end end end )
Sendy Posted June 6, 2014 Author Posted June 6, 2014 is this what you want ? addEventHandler('onZombieWasted', resourceRoot, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if ( attacker ) and ( getElementType ( source ) == 'ped' ) then setElementData(attacker, "blood", 100) end end end ) does not work: (
pa3ck Posted June 6, 2014 Posted June 6, 2014 setElementData(attacker, "blood", getElementData ( attacker, "blood" ) + 200 )
Sendy Posted June 6, 2014 Author Posted June 6, 2014 setElementData(attacker, "blood", getElementData ( attacker, "blood" ) + 200 ) does not work (and it is added to the F5 Debug Monitor?
Max+ Posted June 6, 2014 Posted June 6, 2014 Try This , addEvent('onZombieWasted', true) addEventHandler('onZombieWasted', root, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then setElementData(attacker, "blood", getElementData( attacker, "blood" ) + 200 ) end end end ) + Make sure your in VIP Group , Not V.I.P , and add the resource in acl admin group reesource.name ,
Sendy Posted June 6, 2014 Author Posted June 6, 2014 Try This , addEvent('onZombieWasted', true) addEventHandler('onZombieWasted', root, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("VIP")) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then setElementData(attacker, "blood", getElementData( attacker, "blood" ) + 200 ) end end end ) + Make sure your in VIP Group , Not V.I.P , and add the resource in acl admin group reesource.name , That's all I know .. i already got all the time but it does not work .. God and it does not work somehow differently to DayZ zombie?
Max+ Posted June 6, 2014 Posted June 6, 2014 Well , it's works with https://wiki.multitheftauto.com/wiki/Slothman/Zombies i don't know if DayZ Zombie has , a diffrent functions or not , because i never tested it , i also looked into wiki not resource named DayZ only Slothman,
Sendy Posted June 7, 2014 Author Posted June 7, 2014 Please help someone? it does not work all the time
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