Jump to content

[HELP] Please


Sendy

Recommended Posts

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 
) 

Link to comment
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

Link to comment
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?

Link to comment
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? :)

Link to comment
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 ?

Link to comment
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

Link to comment

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 
 ) 

Link to comment
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: (

Link to comment

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

,

Link to comment
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?

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...