Jump to content

zkillreward help me


1LoL1

Recommended Posts

Hi, So I have one prozby can not remake this script? as instead of $ 100 would be added 100Blood I tried to remake it does not work if someone knew Please advise and if I could pray that it works on DayZ zombie

Script:

addEvent( "onZombieWasted" ); 
addEventHandler( "onZombieWasted", getRootElement(), 
       function( killer ) 
           givePlayerBlood( killer, 100 ); 
       end 
) 

Link to comment
  • Moderators

Well if you don't know the key, you can also detect it with this peace of code:

addEventHandler("onElementDataChange",root, 
function (theName,oldValue) 
    if getElementType(source) == "player" then 
        outputChatBox("The string name: " .. theName .. " Old value: " .. oldValue,source) 
    end 
end) 
  

setElementData(killer,"theName", 100)

Link to comment
Well if you don't know the key, you can also detect it with this peace of code:
addEventHandler("onElementDataChange",root, 
function (theName,oldValue) 
    if getElementType(source) == "player" then 
        outputChatBox("The string name: " .. theName .. " Old value: " .. oldValue,source) 
    end 
end) 
  

setElementData(killer,"theName", 100)

It still does not add anything ..

Link to comment
  • 4 weeks later...
  • Moderators
This givePlayerBlood function is in resource that you are working in? If no, you have to export that function.

So please help me anyone? I know this is an old topic but I need it .. :(

We did, but you didn't listen. :roll:

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...