Jump to content

MR.Su1T4N

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by MR.Su1T4N

  1. طيب ياخوي مايجي وربي طيب ابي احط الكلنت GUIEditor = { tabpanel = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(187, 129, 467, 346, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(82, 25, 375, 311, false, GUIEditor.window[1]) TAG1 = guiCreateTab("Tab", GUIEditor.tabpanel[1]) button = guiCreateButton(9, 72, 63, 45, "ZZZZ", false, GUIEditor.window[1]) end ) addEventHandler ( "onClientGUIClick",button, function ( ) guiSetSelectedTab ( GUIEditor.tabpanel[1], TAG1 ); end ); function ss() 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 bindKey ("F12", "down", ss)
  2. ايوه بس مدري وش فيه طيب يمديك تعدل فيه
  3. addEventHandler ( "onClientGUIClick", button, function ( ) guiSetSelectedTab ( tabPanel, tab ); end ); هو الخلط في
  4. يا شباب خطاء في الكود
  5. طيب اول شيء الي الي هي الوحه باسم ^window^ طيب الي يشتري اسلحه ^button^ طيب الي يخلي لوحه فيها اكثر من لوحه ^tab^ انا ابي الي يفتح التاب ^button^
  6. شباب هذا اخر شيء انشاء الله
  7. طيب مني فاهم عليك edit: طيب كذا صح function MR.Su1T4N() if(guiGetSelectedTab(window)==button)then else guiSetSelectedTab(tab,button) end end )
  8. طيب اول شيء الي الي هي الوحه باسم ^window^ طيب الي يشتري اسلحه ^button^ طيب الي يخلي لوحه فيها اكثر من لوحه ^tab^ انا ابي الي يفتح التاب ^button^
  9. انا سويت الكود بس مدري صح او خطاء addEventHandler("onClientGUIClick",root, function tab() if ( source == GUIEditor.button[2] ) then local tab = guiCreateTab (tab) end ) edit: شباب تكفون ساعدوني ابي بس هذا اخر شيء
  10. شباب شوفولي حل مع هذا الكود GUIEditor = { tabpanel = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(202, 120, 504, 411, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 485, 379, false, GUIEditor.window[1]) tab1 = guiCreateTab("Tab", GUIEditor.tabpanel[1]) playerName = guiCreateLabel(8, 120, 467, 15, "Your Name :", false, tab1) end ) guiLabelSetColor(playerName,0,255,0) guiSetText ( playerName, getPlayerName(localPlayer)) function refreshStats() if guiGetVisible(tab1,true) then else guiSetText(playerName,"Your Name :"..getPlayerName(getLocalPlayer())) end end addEventHandler("onClientRender", getRootElement(), refreshStats) bindKey ( "F12" , "down" , function() if ( guiGetVisible ( shopWindow ) == true ) then guiSetVisible ( shopWindow ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( shopWindow ) == false ) then guiSetVisible ( shopWindow ,true ) showCursor (false ) guiSetInputEnabled(true) end end )
  11. addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then triggerServerEvent("onlogin",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2 end end ) addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[2] ) then triggerServerEvent("onregister",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) end end ) ^طيب يا شباب الحين انا فرقت هذا صح او لا^
  12. مني فاهم يا بشر
  13. مادري وش قصدك المهم اذا تبي تتاكد اعطيك المود
  14. طيب عطوني اكواد غيرها وانا اجرب edit: تكفون شوفولي حل
  15. رسالة تم تسجيل الدخول والتسجيل
  16. شباب تكفون ساعدوني
  17. اسمع اذا ضغطة GUIEditor.button يكرر اذا ضغطته مره يكرر مرتين واذا ضغطته مرتين يكرر اربع مرات
  18. يليل برضه يكرر
  19. GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(202, 153, 413, 387, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 22, 395, 356, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Tab", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(59, 237, 114, 41, "تسجيل الدخول", false, GUIEditor.tab[1]) GUIEditor.button[2] = guiCreateButton(222, 237, 114, 41, "تسجيل ", false, GUIEditor.tab[1]) GUIEditor.edit[1] = guiCreateEdit(94, 129, 189, 36, "", false, GUIEditor.tab[1]) GUIEditor.edit[2] = guiCreateEdit(94, 185, 141, 36, "", false, GUIEditor.tab[1]) end ) addEventHandler ("onClientGUIClick", root, function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then triggerServerEvent("onlogin",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) elseif ( source == GUIEditor.button[2] ) then triggerServerEvent("onregister",localPlayer, guiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2])) end end ) bindKey ( "F2" , "down" , function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end ) addEvent('CloseAll',true) addEventHandler('CloseAll',root,function() if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) ^كلينت^ addEvent("onlogin",true) addEventHandler("onlogin",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then logIn(source,account,pass) triggerClientEvent(source,'CloseAll',source) else outputChatBox("* Worng Username Or Password",source,255,0,0) end end ) addEvent("onregister",true) addEventHandler("onregister",getRootElement(), function (user,pass) local account = getAccount(user,pass) if ( account ) then outputChatBox("* This Account is Already Used",source,255,0,0) else addAccount(user,pass) outputChatBox("UserName: " .. user .. " PassWord : " .. pass,source,0,150,255) end end ) ^سيرفر^
  20. اذا ضغطت على الزر يكرر مرتين
×
×
  • Create New...