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.
darhal Posted March 21, 2015 Posted March 21, 2015 Are you sure you put this server side ? #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
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 - Inactivo.
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 #include <iostream> int main() { std::cout << "C++ is amazing <3" << std::endl; return 0; } I left MTA !... I m doing some tuts about (servers and scripting here) subscribe please
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