waleedrt Posted May 16, 2016 Share Posted May 16, 2016 hello , can you guys fill this elemnt at argument 1 cuz i have tried every thing and not working (its for players) bindKey ( ,"h","down",healer) Link to comment
waleedrt Posted May 16, 2016 Author Share Posted May 16, 2016 or tell me how can i know Link to comment
Walid Posted May 16, 2016 Share Posted May 16, 2016 you want to bind a key for all players right. Link to comment
Bean666 Posted May 16, 2016 Share Posted May 16, 2016 remove that , before "h" and try this: bindKey( 'h', 'down', healer ) Link to comment
Walid Posted May 16, 2016 Share Posted May 16, 2016 if your code is server side , All what you need is : function bind(player) bindKey(player, "h","down",healer) end function onPlayerJoin () bind(source) end addEventHandler("onPlayerJoin",getRootElement(), onPlayerJoin) function bindKeyForAll() for index, player in pairs(getElementsByType("player")) do bind(player) end end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),bindKeyForAll) Link to comment
waleedrt Posted May 16, 2016 Author Share Posted May 16, 2016 you want to bind a key for all players right. ye Link to comment
waleedrt Posted May 16, 2016 Author Share Posted May 16, 2016 remove that , before "h" and try this: bindKey( 'h', 'down', healer ) its server side Link to comment
Walid Posted May 16, 2016 Share Posted May 16, 2016 already gave you the solution. Edit: didn't see Karim's post. Link to comment
Bean666 Posted May 16, 2016 Share Posted May 16, 2016 sorry, didn;t know its serverside. Link to comment
waleedrt Posted May 16, 2016 Author Share Posted May 16, 2016 already gave you the solution.Edit: didn't see Karim's post. i'm trying 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