^Dev-PoinT^ Posted November 30, 2011 Share Posted November 30, 2011 i Have Made This For My Server See function a () GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(495,274,549,308,"",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,29,531,270,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(137,18,182,17,"Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(5,49,288,20,"[*] GO To Gun Shop To Buy Guns!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(5,82,228,17,"[*] Kill Players To Get Some Points !",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,255) guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[4] = guiCreateLabel(6,115,223,16,"[*] Max FPS 50!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(279,222,251,17,"This GameMode Made By Dev-PoinT !",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(345,57,185,138,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(3,154,326,15,"[*] This GameMode is Copy oF Samp Free Kill /RPG",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,100) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Label[7] = guiCreateLabel(5,215,276,22,"[*] Have Fun Play in My Server!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(386,13,131,24,"X",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[8] = guiCreateLabel(4,15,508,21,"This is Rules of The Server Please Read it !",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(5,44,522,198,"[*] Dont Ask To Give Admin !\n\n[*] Dont install Weapon.dat\n\n[*] Dont Run any Hack Programs\n\n[*] PlayFair\n\n[*] Special Thx To [H~9] Gang !\n\n[*] This GameMode is Gift For [H~9] [Avira] \n\nHave Fun !",false,GUIEditor_Tab[2]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],function(button) if (button == "left") then destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) showCursor(false) end end,false) but can any one Help Make it Visbel when i bind Key F3 and Make it unbisble when i bind it again? sorry for Bad english Link to comment
AnDReJ98 Posted November 30, 2011 Share Posted November 30, 2011 you need like this GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Memo = {} GUIEditor_Image = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Window[1] = guiCreateWindow(495,274,549,308,"",false) guiSetVisible(GUIEditor_Window[1],false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,29,531,270,false,GUIEditor_Window[1]) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(137,18,182,17,"Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255,0,0) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(5,49,288,20,"[*] GO To Gun Shop To Buy Guns!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],0,255,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(5,82,228,17,"[*] Kill Players To Get Some Points !",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[3],0,0,255) guiSetFont(GUIEditor_Label[3],"clear-normal") GUIEditor_Label[4] = guiCreateLabel(6,115,223,16,"[*] Max FPS 50!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,0) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Label[5] = guiCreateLabel(279,222,251,17,"This GameMode Made By Dev-PoinT !",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[5],"default-bold-small") GUIEditor_Image[1] = guiCreateStaticImage(345,57,185,138,"images/mtalogo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[6] = guiCreateLabel(3,154,326,15,"[*] This GameMode is Copy oF Samp Free Kill /RPG",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[6],255,255,100) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Label[7] = guiCreateLabel(5,215,276,22,"[*] Have Fun Play in My Server!",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255,0,0) guiSetFont(GUIEditor_Label[7],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(386,13,131,24,"X",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Tab[2] = guiCreateTab("Tab",GUIEditor_TabPanel[1]) GUIEditor_Label[8] = guiCreateLabel(4,15,508,21,"This is Rules of The Server Please Read it !",false,GUIEditor_Tab[2]) guiLabelSetColor(GUIEditor_Label[8],255,255,0) guiSetFont(GUIEditor_Label[8],"clear-normal") GUIEditor_Memo[1] = guiCreateMemo(5,44,522,198,"[*] Dont Ask To Give Admin !\n\n[*] Dont install Weapon.dat\n\n[*] Dont Run any Hack Programs\n\n[*] PlayFair\n\n[*] Special Thx To [H~9] Gang !\n\n[*] This GameMode is Gift For [H~9] [Avira] \n\nHave Fun !",false,GUIEditor_Tab[2]) addEventHandler("onClientGUIClick",GUIEditor_Button[1],function(button) if (button == "left") then destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) showCursor(false) end end,false) function onresourceStart () bindKey ("F3", "down", showUserPanel) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onresourceStart) function showUserPanel () getVisible = guiGetVisible (GUIEditor_Window[1]) if (getVisible == true) then guiSetVisible (GUIEditor_Window[1], false) showCursor (false) end if (getVisible == false) then guiSetVisible (GUIEditor_Window[1], true) showCursor (true) end end Link to comment
^Dev-PoinT^ Posted November 30, 2011 Author Share Posted November 30, 2011 Your Code Have errors i Fix it Thx For Help Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now