changeGridListItemToPlayersName = function ( grid, col )
if grid and col then
if getElementType ( grid ) == "gui-gridlist" then
if guiGridListClear ( grid ) then
for i, v in next, getElementsByType ( "player" ) do
local Row = guiGridListAddRow ( grid )
guiGridListSetItemText ( grid, Row, col, getPlayerName ( v ), false, false )
end
end
end
end
end
GUIEditor_Window = {}
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Grid = {}
GUIEditor_Window[1] = guiCreateWindow(243,67,334,468,"Admin Panel - v 1.0",false)
guiSetVisible(GUIEditor_Window[1],false)
GUIEditor_TabPanel[1] = guiCreateTabPanel(9,22,313,432,false,GUIEditor_Window[1])
GUIEditor_Tab[1] = guiCreateTab("Player",GUIEditor_TabPanel[1])
GUIEditor_Grid[1] = guiCreateGridList(5,30,167,369,false,GUIEditor_Tab[1])
guiGridListSetSelectionMode(GUIEditor_Grid[1],2)
guiGridListAddColumn(GUIEditor_Grid[1],"Players",0.-- s8) -->
GUIEditor_Button[1] = guiCreateButton(277,8,28,16,"X",false,GUIEditor_Tab[1])
GUIEditor_Button[2] = guiCreateButton(197,66,91,22,"Fix",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[2],"default-bold-small")
GUIEditor_Button[3] = guiCreateButton(198,106,91,22,"Heal Players",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[3],"default-bold-small")
GUIEditor_Button[4] = guiCreateButton(198,145,91,22,"Heal",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[4],"default-bold-small")
GUIEditor_Button[5] = guiCreateButton(198,187,91,22,"Kick",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[5],"default-bold-small")
GUIEditor_Button[6] = guiCreateButton(199,227,91,22,"ban 1 hour",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[6],"default-bold-small")
GUIEditor_Button[7] = guiCreateButton(199,266,91,22,"Mute",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[7],"default-bold-small")
GUIEditor_Button[8] = guiCreateButton(199,303,91,22,"Armour",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[8],"default-bold-small")
GUIEditor_Button[9] = guiCreateButton(199,341,91,22,"remove",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[9],"default-bold-small")
GUIEditor_Button[10] = guiCreateButton(200,377,91,22,"Add",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Button[10],"default-bold-small")
GUIEditor_Label[1] = guiCreateLabel(177,35,129,20,"IP :",false,GUIEditor_Tab[1])
guiSetFont(GUIEditor_Label[1],"default-bold-small")
GUIEditor_Tab[2] = guiCreateTab("About",GUIEditor_TabPanel[1])
bindKey ( "F2" , "down" ,
function()
guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1]))
showCursor(guiGetVisible(GUIEditor_Window[1]))
if ( guiGetVisible(GUIEditor_Window[1]) == true ) then
playSound("open.wav")
changeGridListItemToPlayersName(GUIEditor_Grid[1],1)
end
end
)