Jump to content

Question


xeon17

Recommended Posts

  
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
  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...