----#ClientSide
GUIEditor = {
staticimage = {},
label = {},
edit = {},
button = {},
window = {},
gridlist = {},
memo = {}
}
GUIEditor.window[1] = guiCreateWindow(495, 217, 300, 348, "Panel Kick From Game", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetVisible(GUIEditor.window[1],false)
GUIEditor.button[1] = guiCreateButton(23, 314, 260, 24, "Close", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.button[2] = guiCreateButton(26, 280, 257, 24, "Kick Out Map", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA")
GUIEditor.edit[1] = guiCreateEdit(76, 240, 183, 18, "", false, GUIEditor.window[1])
GUIEditor.gridlist[1] = guiCreateGridList(13, 29, 277, 154, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "Player", 0.5)
guiGridListAddColumn(GUIEditor.gridlist[1], "Status", 0.5)
GUIEditor.label[1] = guiCreateLabel(62, 162, 154, 36, "", false, GUIEditor.gridlist[1])
GUIEditor.staticimage[1] = guiCreateStaticImage(20, 182, 42, 65, ":guieditor/client/colorpicker/alpha.png", false, GUIEditor.gridlist[1])
GUIEditor.memo[1] = guiCreateMemo(92, 163, 143, 19, "", false, GUIEditor.gridlist[1])
GUIEditor.staticimage[2] = guiCreateStaticImage(42, 183, 10, 0, ":guieditor/images/dx_elements/radio_button.png", false, GUIEditor.gridlist[1])
GUIEditor.edit[2] = guiCreateEdit(76, 175, 36, 13, "", false, GUIEditor.gridlist[1])
GUIEditor.memo[2] = guiCreateMemo(193, 171, 23, 21, "", false, GUIEditor.gridlist[1])
GUIEditor.memo[3] = guiCreateMemo(75, 174, 61, 18, "", false, GUIEditor.gridlist[1])
GUIEditor.label[2] = guiCreateLabel(79, 240, 15, 18, "", false, GUIEditor.window[1])
GUIEditor.label[3] = guiCreateLabel(26, 240, 50, 18, "reason :", false, GUIEditor.window[1])
GUIEditor.label[4] = guiCreateLabel(26, 198, 50, 15, "Search :", false, GUIEditor.window[1])
GUIEditor.edit[3] = guiCreateEdit(76, 195, 183, 18, "", false, GUIEditor.window[1])
local KEX="F9"
function OPEDN()
guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )
showCursor( guiGetVisible( GUIEditor.window[1] ) )
end
bindKey(KEX,"down",OPEDN)
addEventHandler("onClientGUIClick",root, --- حدث عند الضغط علي الزر
function()
if source == GUIEditor.button[2] then -- غير اسم الزرار
local GetNameD = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) --- غير اسم القريد لست
if ( getPlayerFromName ( GetNameD ) ) then
local NameGet = getPlayerName(localPlayer)
local AAget = guiGetText(GUIEditor.edit[3]) --- هذي لو انت مسوي ايدت فيها السبب #
triggerServerEvent("Kick",localPlayer,GetNameD,AAget,NameGet)
end
end
end
)
addEventHandler("onClientGUIClick",root,
function()
if source == GUIEditor.button[1] then
guiSetVisible(GUIEditor.window[1],false)
showCursor(false)
end
end
)
-----#ServerSide
addEvent("Kick",true)
addEventHandler("Kick",root,
function(NameGet,AAget,lpName)
kickPlayer ( NameGet, AAget )
outputChatBox(''..NameGet.. 'Has Been Kicked From Game By' ..lpName.. '(' ..AAget.. ')',root,255,255,0,true)
end
)
عطني خبر,
# ألقسم غلط ,
@Tete omar