Jump to content

[HELP] bindkey for acl group


Synthe1

Recommended Posts

Hello, I need your help, I want to make bindkey only for acl groups, but that's the problem, i dont know how to make server side. Can you help me please? 

 

GUIEditor = {
    button = {},
	Nitro = {},
	Yol = {},
    window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(0.83, 0.30, 0.16, 0.24, "Derby Skin Panel", true)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.button[1] = guiCreateButton(0.13, 0.22, 0.77, 0.17, "Carbon Fiber", true, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[2] = guiCreateButton(0.13, 0.46, 0.77, 0.17, "HellaFlush", true, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
        GUIEditor.button[3] = guiCreateButton(0.13, 0.69, 0.77, 0.17, "Eklenicek", true, GUIEditor.window[1])
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") 

GUIEditor.window[2] = guiCreateWindow(0.83, 0.55, 0.16, 0.20, "Derby Nitro Panel", true)
        guiWindowSetSizable(GUIEditor.window[2], false)

        GUIEditor.Nitro[1] = guiCreateButton(0.06, 0.19, 0.88, 0.27, "Nitro 1", true, GUIEditor.window[2])
        guiSetProperty(GUIEditor.Nitro[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.Nitro[2] = guiCreateButton(0.07, 0.59, 0.87, 0.27, "Nitro 2", true, GUIEditor.window[2])
        guiSetProperty(GUIEditor.Nitro[2], "NormalTextColour", "FFAAAAAA")  

        GUIEditor.window[3] = guiCreateWindow(0.83, 0.05, 0.16, 0.24, "vgncarshade Texture Panel", true)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.Yol[1] = guiCreateButton(0.07, 0.18, 0.87, 0.25, "Ac", true, GUIEditor.window[3])
        guiSetProperty(GUIEditor.Yol[1], "NormalTextColour", "FFAAAAAA")
        GUIEditor.Yol[2] = guiCreateButton(0.06, 0.54, 0.87, 0.25, "KAPAT", true, GUIEditor.window[3])
        guiSetProperty(GUIEditor.Yol[2], "NormalTextColour", "FFAAAAAA")    
    end  		
)
function Gizle ( )        
        if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then
                guiSetVisible ( GUIEditor.window[1], true )
                                                guiSetVisible ( GUIEditor.window[2], true )
                                                                guiSetVisible ( GUIEditor.window[3], true )
                                                        
                                showCursor(true)
        else              
                guiSetVisible ( GUIEditor.window[1], false )
                                                guiSetVisible ( GUIEditor.window[2], false )
                                                                guiSetVisible ( GUIEditor.window[3], false )
                                showCursor(false)
        end
    end
bindKey ( "f5", "down", Gizle )

function kapat()
                guiSetVisible ( GUIEditor.window[1], false )
                                                guiSetVisible ( GUIEditor.window[2], false )
                                                                guiSetVisible ( GUIEditor.window[3], false )
end

addEventHandler("onClientResourceStart",root,
function()
kapat()
end
)

shader = dxCreateShader('shader.fx')
shader2 = dxCreateShader('shader.fx')
Python = dxCreateTexture('1.png')
Python2 = dxCreateTexture('2.png')
Python3 = dxCreateTexture('3.png')
Python4 = dxCreateTexture('4.png')
Python5 = dxCreateTexture('5.png')
dxSetShaderValue(shader, 'gTexture', Python)

addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then
dxSetShaderValue(shader, 'gTexture', Python)
engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256')
end
end
)

addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[2] then
dxSetShaderValue(shader, 'gTexture', Python2)
engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256')
end
end
)

addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[3] then
dxSetShaderValue(shader, 'gTexture', Python3)
engineApplyShaderToWorldTexture(shader, 'vehiclegrunge256')
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.Nitro[1] then
dxSetShaderValue(shader2, 'gTexture', Python4)
engineApplyShaderToWorldTexture(shader2, 'smoke')
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.Nitro[2] then
dxSetShaderValue(shader2, 'gTexture', Python5)
engineApplyShaderToWorldTexture(shader2, 'smoke')
end
end
)

 

 

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