Simple. Posted August 1, 2014 Share Posted August 1, 2014 آلسلام عليكم , كيف آلحال آلمهم انا مآركر لما تدخله تجيك نآفذه , لكن عندي مشكله لما آشغل آلمود تشتغل آلنافذه + لما ادخل الماركر مآتطلع لي آلنآفذه , وهذا الكود ! GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, combobox = {} } addEventHandler("onClientResourceStart", resourceRoot, function( Rooms ) RoomWin = guiCreateWindow(263, 161, 303, 273, "آلمقر آلشخصي", false) guiWindowSetSizable(RoomWin, false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 26, 283, 237, false, RoomWin) GUIEditor.tab[1] = guiCreateTab("مميزات آلمقر", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(136, 0, 28, 33, "*", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 91, 0, 0) GUIEditor.label[2] = guiCreateLabel(137, 13, 103, 30, "", false, GUIEditor.tab[1]) GUIEditor.label[3] = guiCreateLabel(62, 10, 107, 30, "مميزات المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 129, 129, 129) GUIEditor.label[4] = guiCreateLabel(226, 42, 14, 44, "", false, GUIEditor.tab[1]) GUIEditor.label[5] = guiCreateLabel(133, 50, 107, 53, "* شوب داخل المقر\n \n * صرافه داخل المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 129, 129, 129) GUIEditor.label[6] = guiCreateLabel(48, 103, 202, 33, " * تستطيع إضافة 2 من آصدقائك للمقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 129, 129, 129) GUIEditor.label[7] = guiCreateLabel(87, 131, 208, 31, "* ماركر يومي بدآخله 100 ألف", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 129, 129, 129) GUIEditor.label[8] = guiCreateLabel(-8, 152, 303, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[8], "sa-gothic") guiLabelSetColor(GUIEditor.label[8], 91, 0, 0) GUIEditor.tab[2] = guiCreateTab("طريقة الشراء", GUIEditor.tabpanel[1]) GUIEditor.label[9] = guiCreateLabel(208, 13, 15, 30, "", false, GUIEditor.tab[2]) GUIEditor.label[10] = guiCreateLabel(73, 3, 125, 24, "بطائق شحن ( موبايلي )", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 129, 129, 129) GUIEditor.combobox[1] = guiCreateComboBox(44, 23, 179, 69, "", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهر = 30 ريال") guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهرين = 60 ر يال") GUIEditor.label[11] = guiCreateLabel(0, 95, 288, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[11], "sa-gothic") guiLabelSetColor(GUIEditor.label[11], 91, 0, 0) GUIEditor.combobox[2] = guiCreateComboBox(44, 128, 179, 69, "مقر لمدة شهرين = 15$", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهر = 5$") guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهرين = 15$") GUIEditor.label[12] = guiCreateLabel(98, 105, 125, 24, "كاش يو", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetColor(GUIEditor.label[12], 129, 129, 129) GUIEditor.tab[3] = guiCreateTab("للدفع", GUIEditor.tabpanel[1]) GUIEditor.label[13] = guiCreateLabel(42, 17, 177, 26, "آرسل رقم آلبطاقه الكود لـ الإيميل", false, GUIEditor.tab[3]) GUIEditor.label[14] = guiCreateLabel(66, 47, 193, 28, "[email protected]", false, GUIEditor.tab[3]) GUIEditor.label[15] = guiCreateLabel(32, 70, 212, 32, "إكتب في آلرساله آسمك وآسم حسآبك", false, GUIEditor.tab[3]) GUIEditor.label[16] = guiCreateLabel(0, 106, 295, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[16], "sa-gothic") GUIEditor.button[1] = guiCreateButton(252, 26, 41, 26, "X", false, RoomWin) end ) ----------------------------- زر إغلاق النافذه ------------------------- function onGuiClick (button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then guiSetVisible(RoomWin, not guiGetVisible(RoomWin)) showCursor(guiGetVisible(RoomWin)) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) -------------------------------- وظيفة الماركر ---------------------------------- addEventHandler('onClientMarkerHit', Rooms, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( RoomWin ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) ------------------------------- الماركر ---------------------------- createBlip ( 1310.1215820313, -1369.0294189453, 13.209540367126, 32 ) local Rooms = createMarker ( 1309.81640625, -1367.9173583984, 12.54178237915, "cylinder", 2, 0, 159, 183 ) Link to comment
Max+ Posted August 1, 2014 Share Posted August 1, 2014 ---ClientSide GUIEditor = { tab = {}, tabpanel = {}, label = {}, button = {}, combobox = {} } addEventHandler("onClientResourceStart", resourceRoot, function( ) RoomWin = guiCreateWindow(263, 161, 303, 273, "آلمقر آلشخصي", false) guiSetVisible(RoomWin, false ) guiWindowSetSizable(RoomWin, false) GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 26, 283, 237, false, RoomWin) GUIEditor.tab[1] = guiCreateTab("مميزات آلمقر", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(136, 0, 28, 33, "*", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "sa-gothic") guiLabelSetColor(GUIEditor.label[1], 91, 0, 0) GUIEditor.label[2] = guiCreateLabel(137, 13, 103, 30, "", false, GUIEditor.tab[1]) GUIEditor.label[3] = guiCreateLabel(62, 10, 107, 30, "مميزات المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 129, 129, 129) GUIEditor.label[4] = guiCreateLabel(226, 42, 14, 44, "", false, GUIEditor.tab[1]) GUIEditor.label[5] = guiCreateLabel(133, 50, 107, 53, "* شوب داخل المقر\n \n * صرافه داخل المقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[5], "default-bold-small") guiLabelSetColor(GUIEditor.label[5], 129, 129, 129) GUIEditor.label[6] = guiCreateLabel(48, 103, 202, 33, " * تستطيع إضافة 2 من آصدقائك للمقر", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[6], "default-bold-small") guiLabelSetColor(GUIEditor.label[6], 129, 129, 129) GUIEditor.label[7] = guiCreateLabel(87, 131, 208, 31, "* ماركر يومي بدآخله 100 ألف", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[7], "default-bold-small") guiLabelSetColor(GUIEditor.label[7], 129, 129, 129) GUIEditor.label[8] = guiCreateLabel(-8, 152, 303, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[8], "sa-gothic") guiLabelSetColor(GUIEditor.label[8], 91, 0, 0) GUIEditor.tab[2] = guiCreateTab("طريقة الشراء", GUIEditor.tabpanel[1]) GUIEditor.label[9] = guiCreateLabel(208, 13, 15, 30, "", false, GUIEditor.tab[2]) GUIEditor.label[10] = guiCreateLabel(73, 3, 125, 24, "بطائق شحن ( موبايلي )", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[10], "default-bold-small") guiLabelSetColor(GUIEditor.label[10], 129, 129, 129) GUIEditor.combobox[1] = guiCreateComboBox(44, 23, 179, 69, "", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهر = 30 ريال") guiComboBoxAddItem(GUIEditor.combobox[1], "مقر لمدة شهرين = 60 ر يال") GUIEditor.label[11] = guiCreateLabel(0, 95, 288, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[11], "sa-gothic") guiLabelSetColor(GUIEditor.label[11], 91, 0, 0) GUIEditor.combobox[2] = guiCreateComboBox(44, 128, 179, 69, "مقر لمدة شهرين = 15$", false, GUIEditor.tab[2]) guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهر = 5$") guiComboBoxAddItem(GUIEditor.combobox[2], "مقر لمدة شهرين = 15$") GUIEditor.label[12] = guiCreateLabel(98, 105, 125, 24, "كاش يو", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[12], "default-bold-small") guiLabelSetColor(GUIEditor.label[12], 129, 129, 129) GUIEditor.tab[3] = guiCreateTab("للدفع", GUIEditor.tabpanel[1]) GUIEditor.label[13] = guiCreateLabel(42, 17, 177, 26, "آرسل رقم آلبطاقه الكود لـ الإيميل", false, GUIEditor.tab[3]) GUIEditor.label[14] = guiCreateLabel(66, 47, 193, 28, "[email protected]", false, GUIEditor.tab[3]) GUIEditor.label[15] = guiCreateLabel(32, 70, 212, 32, "إكتب في آلرساله آسمك وآسم حسآبك", false, GUIEditor.tab[3]) GUIEditor.label[16] = guiCreateLabel(0, 106, 295, 15, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", false, GUIEditor.tab[3]) guiSetFont(GUIEditor.label[16], "sa-gothic") GUIEditor.button[1] = guiCreateButton(252, 26, 41, 26, "X", false, RoomWin) end ) ----------------------------- زر إغلاق النافذه ------------------------- function onGuiClick ( ) if ( source == GUIEditor.button[1] ) then guiSetVisible(RoomWin, false ) showCursor(false) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) local Rooms = createMarker ( 1309.81640625, -1367.9173583984, 12.54178237915, "cylinder", 2, 0, 159, 183 ) createBlip ( 1310.1215820313, -1369.0294189453, 13.209540367126, 32 ) -------------------------------- وظيفة الماركر ---------------------------------- addEventHandler('onClientMarkerHit', Rooms , function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( RoomWin ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) Link to comment
Simple. Posted August 1, 2014 Author Share Posted August 1, 2014 يعطيك آلعافيه ي مآكس م قصرت * يغلق Link to comment
Max+ Posted August 1, 2014 Share Posted August 1, 2014 يعطيك آلعافيه ي مآكس م قصرت * يغلق يعافيك حبيبي حياك الله ,~ 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