xeon17 Posted August 19, 2014 Share Posted August 19, 2014 How i can use this function to check some player gta controls, but it should check every 10 seconds ? https://wiki.multitheftauto.com/wiki/Ge ... BoundToKey and if player have custom controls he get kicked a example? Link to comment
Anubhav Posted August 20, 2014 Share Posted August 20, 2014 local keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "backspace", "tab", "lalt", "ralt", "space", "pgup", "pgdn", "end", "home", "insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" } setTimer(function() for player,hi in ipairs(getElementsByType("player") do for _,i in ipairs(keyTable)do --loop through keyTable for _,v in ipairs(getFunctionsBoundToKey(hi,i))do --loop through the key bounded functions outputChatBox(i.." was bound to:"..v.." by"..getPlayerName(hi) kickPlayer(hi) end end end end, 5000, 0) Link to comment
Max+ Posted August 20, 2014 Share Posted August 20, 2014 local keyTable = { "mouse1", "mouse2", "mouse3", "mouse4", "mouse5", "mouse_wheel_up", "mouse_wheel_down", "arrow_l", "arrow_u", "arrow_r", "arrow_d", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "num_0", "num_1", "num_2", "num_3", "num_4", "num_5", "num_6", "num_7", "num_8", "num_9", "num_mul", "num_add", "num_sep", "num_sub", "num_div", "num_dec", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "backspace", "tab", "lalt", "ralt", "space", "pgup", "pgdn", "end", "home", "insert", "delete", "lshift", "rshift", "lctrl", "rctrl", "[", "]", "pause", "capslock", "scroll", ";", ",", "-", ".", "/", "#", "\\", "=" } setTimer(function() for player,hi in ipairs(getElementsByType("player") do for _,i in ipairs(keyTable)do --loop through keyTable for _,v in ipairs(getFunctionsBoundToKey(hi,i))do --loop through the key bounded functions outputChatBox(i.." was bound to:"..v.." by"..getPlayerName(hi) kickPlayer(hi) end end end end, 5000, 0) Nope he want , like if you changed the mta controls , you will get kicked for Example , if the fire key 'fire' and player change fire key for 'Ctrl' then kick him , and reset the controls . Link to comment
Bonsai Posted August 20, 2014 Share Posted August 20, 2014 Afaik, there are resources for this already. So why create your own, especially because its more like you let others create it for you Link to comment
xeon17 Posted August 20, 2014 Author Share Posted August 20, 2014 Afaik, there are resources for this already.So why create your own, especially because its more like you let others create it for you I seached resources on wiki but found nothing , if you know one please give me ._. 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