Jump to content

[HELP] Not Work


1LoL1

Recommended Posts

Hi, I question? why this is not working? :( 1x kill zombies, and when Iam in acl.xml in the "Vip" so I get 50$ instead of 100$ :( Please help.

addEvent("onZombieWasted",true) 
addEventHandler("onZombieWasted",root, 
function (killer) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGet("Vip")) then 
        givePlayerMoney(killer, 100 ) 
    else 
        givePlayerMoney(killer, 50 ) 
end 
end) 

Link to comment
Just change aclGet into aclGetGroup.
addEvent("onZombieWasted",true) 
addEventHandler("onZombieWasted",root, 
  function (killer) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGetGroup("Vip")) then 
      givePlayerMoney(killer, 100 ) 
    else 
      givePlayerMoney(killer, 50 ) 
    end 
  end 
) 

Was that really so hard?

Link to comment
Just change aclGet into aclGetGroup.
addEvent("onZombieWasted",true) 
addEventHandler("onZombieWasted",root, 
  function (killer) 
    if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGetGroup("Vip")) then 
      givePlayerMoney(killer, 100 ) 
    else 
      givePlayerMoney(killer, 50 ) 
    end 
  end 
) 

Was that really so hard?

But not work :( :(.

Link to comment
Does it give any errors? Does it give you either $50 or $100? Are you sure you're in the "Vip" ACL and not something like "VIP" because it is case sensitive.

Yes, i am sure.. I am in "VIP" but this is easy..

0 Errors.

Normal = 50$.

With VIP = 100$.

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