Jump to content

What's wrong with this?


bartje01

Recommended Posts

Oh indeed ,it was with a lower case. But still, it doesn't work.

function addPlayerZombieKills(killer) 
    local account = getPlayerAccount(killer) 
    if isGuestAccount(account) then return end 
    local zombieKills = getAccountData(account,"Zombie kills") 
    if not zombieKills then setAccountData(account,"Zombie kills",0) end 
    setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) 
    if getElementData(attacker, "Zombie kills") == 5 then 
    outputChatBox ("Achievement unlocked.") 
end 
  
end 
  

Link to comment
function addPlayerZombieKills(killer) 
    local account = getPlayerAccount(killer) 
    if isGuestAccount(account) then return end 
    local zombieKills = getAccountData(account,"Zombie kills") 
    if not zombieKills then setAccountData(account,"Zombie kills",0) end 
    setAccountData(account,"Zombie kills",tonumber(zombieKills)+1) 
    if getElementData(killer, "Zombie kills") == 5 then 
    outputChatBox ('Achievement unlocked. and you got sepical weapon',killer,255,255,0)--defined the msg sent to who ? 
    giveWeapon ( killer, 31, 200 )--- give him M4 With 200 ammo =D  
    else 
    outputChatBox('Keep on kill to unlocked the Achievement and get your sepical weapon',killer,255,255,0)--speical add =D 
end 
end 

Edited by Guest
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...