1LoL1 Posted March 13, 2015 Share 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) Link to comment
Addlibs Posted March 13, 2015 Share 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. Link to comment
1LoL1 Posted March 13, 2015 Author Share 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? Link to comment
Addlibs Posted March 13, 2015 Share 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? Link to comment
1LoL1 Posted March 13, 2015 Author Share 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 :(. Link to comment
Addlibs Posted March 13, 2015 Share Posted March 13, 2015 Are you sure you've saved and restarted the script? Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 Are you sure you've saved and restarted the script? Yes. Link to comment
xXMADEXx Posted March 13, 2015 Share 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. Link to comment
1LoL1 Posted March 13, 2015 Author Share 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$. Link to comment
xXMADEXx Posted March 13, 2015 Share Posted March 13, 2015 Then change: aclGetGroup("Vip") to aclGetGroup("VIP") Link to comment
1LoL1 Posted March 13, 2015 Author Share Posted March 13, 2015 Then change: aclGetGroup("Vip") to aclGetGroup("VIP") lol.. thx i forgot this change . Link to comment
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