Sendy Posted March 21, 2015 Share 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. Link to comment
Sendy Posted March 21, 2015 Author Share Posted March 21, 2015 Debug? Nothing. This need add in acl.xml? Link to comment
darhal Posted March 21, 2015 Share Posted March 21, 2015 Are you sure you put this server side ? Link to comment
Enargy, Posted March 21, 2015 Share Posted March 21, 2015 Debug? Nothing. This need add in acl.xml? You have to create a acl group called VIP obviously Link to comment
Sendy Posted March 22, 2015 Author Share Posted March 22, 2015 Debug? Nothing. This need add in acl.xml? You have to create a acl group called VIP obviously Yes. Link to comment
darhal Posted March 22, 2015 Share Posted March 22, 2015 show the part in client side where you triged this event Link to comment
TAPL Posted March 22, 2015 Share Posted March 22, 2015 Other than the vip acl group, the health element data may not work properly. 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