السلام عليكم كيفك شباب ان شاء الله بخير
؟؟
المهم :
ابي فكشن هذي اللوحة متفتح الى للادمن + لم يضغط اللعب على الزر يسجن اللعب
addEventHandler("onClientResourceStart", resourceRoot,
function()
Pl_Ad = guiCreateWindow(321, 29, 600, 454, "Panel_Admin", false)
guiWindowSetSizable(Pl_Ad, false)
Gr_Player = guiCreateGridList(9, 22, 279, 423, false, Pl_Ad)
guiSetVisible (Pl_Ad,false)
guiGridListAddColumn(Gr_Player, "Players", 0.5)
guiGridListAddColumn(Gr_Player, "Jail", 0.2)
guiGridListAddColumn(Gr_Player, "Time", 0.2)
guiGridListAddColumn(Gr_Player, "Reason", 0.2)
Jail = guiCreateButton(306, 38, 249, 56, "Jail", false, Pl_Ad)
guiSetFont(Jail, "default-bold-small")
guiSetProperty(Jail, "NormalTextColour", "FFFF0000")
UnJail = guiCreateButton(306, 108, 249, 56, "UnJail", false, Pl_Ad)
guiSetFont(UnJail, "default-bold-small")
guiSetProperty(UnJail, "NormalTextColour", "FF4DFF00")
Kick = guiCreateButton(306, 179, 249, 56, "Kick", false, Pl_Ad)
guiSetFont(Kick, "default-bold-small")
guiSetProperty(Kick, "NormalTextColour", "FF7C1350")
CADJ = guiCreateButton(306, 249, 249, 56, "CloseAllDoorJail", false, Pl_Ad)
guiSetFont(CADJ, "default-bold-small")
guiSetProperty(CADJ, "NormalTextColour", "FF000A8E")
OADJ = guiCreateButton(306, 325, 249, 56, "OpenAllDoorJail", false, Pl_Ad)
guiSetFont(OADJ, "default-bold-small")
guiSetProperty(OADJ, "NormalTextColour", "FF8E7100")
Exit = guiCreateButton(359, 392, 152, 52, "Exit ", false, Pl_Ad)
end)
bindKey("O", "down",function()
guiSetVisible(Pl_Ad, not guiGetVisible (Pl_Ad) )
showCursor ( guiGetVisible (Pl_Ad) )
putPlayers()
end)
function putPlayers()
guiGridListClear(Gr_Player)
for i,player in ipairs(getElementsByType("player")) do
local row = guiGridListAddRow(Gr_Player)
guiGridListSetItemText(Gr_Player,row,1,getPlayerName(player),false,false)
end
end)