1LoL1 Posted March 13, 2015 Posted March 13, 2015 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)
Addlibs Posted March 13, 2015 Posted March 13, 2015 Line 4, 2nd parameter of isObjectInACLGroup. There's a difference between aclGet and aclGetGroup. 2nd parameter requires an ACL group, not an ACL data. Just change aclGet into aclGetGroup.
1LoL1 Posted March 13, 2015 Author Posted March 13, 2015 Line 4, 2nd parameter of isObjectInACLGroup. There's a difference between aclGet and aclGetGroup. 2nd parameter requires an ACL group, not an ACL data.Just change aclGet into aclGetGroup. Can you fix?
Addlibs Posted March 13, 2015 Posted March 13, 2015 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?
1LoL1 Posted March 13, 2015 Author Posted March 13, 2015 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 :(.
Addlibs Posted March 13, 2015 Posted March 13, 2015 Are you sure you've saved and restarted the script?
1LoL1 Posted March 13, 2015 Author Posted March 13, 2015 Are you sure you've saved and restarted the script? Yes.
xXMADEXx Posted March 13, 2015 Posted March 13, 2015 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.
1LoL1 Posted March 13, 2015 Author Posted March 13, 2015 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$.
xXMADEXx Posted March 13, 2015 Posted March 13, 2015 Then change: aclGetGroup("Vip") to aclGetGroup("VIP")
1LoL1 Posted March 13, 2015 Author Posted March 13, 2015 Then change: aclGetGroup("Vip") to aclGetGroup("VIP") lol.. thx i forgot this change .
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