Sendy Posted March 21, 2015 Posted March 21, 2015 Why this not work? addEvent('onZombieWasted', true) addEventHandler('onZombieWasted', root, function (attacker) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(attacker)),aclGetGroup("vip")) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then setElementData(attacker, "health", getElementData( attacker, "health" ) + 20 ) end end end ) Errors: 0.
Enargy, Posted March 21, 2015 Posted March 21, 2015 Debug? Nothing. This need add in acl.xml? You have to create a acl group called VIP obviously
Sendy Posted March 22, 2015 Author Posted March 22, 2015 Debug? Nothing. This need add in acl.xml? You have to create a acl group called VIP obviously Yes.
darhal Posted March 22, 2015 Posted March 22, 2015 show the part in client side where you triged this event
TAPL Posted March 22, 2015 Posted March 22, 2015 Other than the vip acl group, the health element data may not work properly.
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