GamerDeMTA Posted March 16, 2013 Share Posted March 16, 2013 Well I want to do this: A player recuperates health each 1 min. Link to comment
iPrestege Posted March 16, 2013 Share Posted March 16, 2013 setTimer setElementHealth "onPlayerDamage" Link to comment
Renkon Posted March 16, 2013 Share Posted March 16, 2013 setTimer( function() for _, p in ipairs(getElementsByType("player")) do setElementHealth(p, 100) end end, 60000, 0) Link to comment
GamerDeMTA Posted March 16, 2013 Author Share Posted March 16, 2013 setTimer( function() for _, p in ipairs(getElementsByType("player")) do setElementHealth(p, 100) end end, 60000, 0) This will work? and is client or server? Link to comment
TAPL Posted March 16, 2013 Share Posted March 16, 2013 If you will use it client side, there no need for loop all players, just use localPlayer. 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