DonOmar Posted July 27, 2016 Share Posted July 27, 2016 Hello guys today iam requesting a small code to plus admin hp +5 every 3 seconds is there anyone can help with this code ? Link to comment
Bilal135 Posted July 27, 2016 Share Posted July 27, 2016 function increaseAdminHP() local newHealth = getElementHealth(source) +5 setElementHealth(source, newHealth) end function timerIncreaseHP() local acc = getAccountName(getPlayerAccount(source)) if isObjectInACLGroup("user."..acc, aclGetGroup("Admin")) then setTimer(increaseAdminHP, 5000, 0) end 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