Jump to content

yazan

Members
  • Posts

    1,452
  • Joined

  • Last visited

Everything posted by yazan

  1. اكيد . مع العلم انا نوب شوي هههههه li_yazan_il
  2. يب يب هههههه بس انظر عليه يوم يسد ديون سماجة تايم
  3. طيب مثل ما قلت لك غير العالم الوهمي حق الماب ديث ماتش و اعمل المودات على اساس التحقق في اي عالم او داتا حسب انت و مستوى خربتك و يلي ترتاح له ذا ب ملف ماب
  4. يخوي الكود ما فيه غلط لاكن مدري وش المشكلة بدي بوق يعطي الغلط هنا قلت افيدك و اوريك اي سطر
  5. اخوي هذي لوحى new- panel سيرفر فيه سطر 6 + 33 +32 فيه اغلاط جرب سيرفر حق لوحة ثانيه
  6. مبدع @the best ههههههههههه الولد بينتحر و انت جالس نطقطق عليه
  7. لو بتعمل اكثر من قيم مود بتغير العالم الوهمي غير كذا ولا شي بس بالمود لزم تتحق من تيم و تنقله للمكان الخاص فيه
  8. لا مو كودك كل الاكواد النطرحت بسم الله طلبه ملموس ميشتغل نطرح مدري 5 او6 اكواد و كل واحد يختلف عن ثاني و ولا واحد شتغل
  9. عملت مود كامل جديد و مشتغلت معي هههههههه قسم غيرت كل شي TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(-3, 183, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) function panel2 () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) guiMoveRightToCenter( GUIEditor.window[1] ) end bindKey("F2","down", panel2) addEventHandler ( "onClientGUIClick", GUIEditor.button[1], function () triggerServerEvent( "fee" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[2], function () triggerServerEvent( "fee1" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[3], function () triggerServerEvent( "fee2" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[4], function () triggerServerEvent( "fee3" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[5], function () triggerServerEvent( "fee4" , getLocalPlayer() ) end) addEventHandler ( "onClientGUIClick", GUIEditor.button[6], function () triggerServerEvent( "fee5" , getLocalPlayer() ) end)
  10. TimeGuiSetLeftC = { } function guiMoveLeftToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,(w1*4),(y),false) TimeGuiSetLeftC[gui] = setTimer(guiMoveLeftToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 <= x) then killTimer(TimeGuiSetLeftC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,(x1-10),y1,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function ( ) GUIEditor.window[1] = guiCreateStaticImage(0.05, 0.2, 0.9, 0.40, "maz.png", true) guiWindowSetSizable(GUIEditor.window[1], false ) guiSetVisible ( GUIEditor.window[1], false ) guiSetAlpha(GUIEditor.window[1], 1) function Jose ( ) guiSetVisible (GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) if ( guiGetVisible ( GUIEditor.window[1] ) ) then guiMoveRightToCenter( GUIEditor.window[1] ) end showCursor( not isCursorShowing() ) guiMoveRightToCenter( GUIEditor.window[1] ) end bindKey ( "f2", "down", Jose ) end ) function panel ( ) if source == GUIEditor.button[1] then triggerServerEvent( "fee" , getLocalPlayer() ) elseif source == GUIEditor.button[2] then triggerServerEvent( "fee1" , getLocalPlayer() ) elseif source == GUIEditor.button[3] then triggerServerEvent( "fee2" , getLocalPlayer() ) elseif source == GUIEditor.button[4] then triggerServerEvent( "fee3" , getLocalPlayer() ) elseif source == GUIEditor.button[5] then triggerServerEvent( "fee4" , getLocalPlayer() ) elseif source == GUIEditor.button[6] then triggerServerEvent( "fee5" , getLocalPlayer() ) end end addEventHandler ( "onClientGUIClick", root, panel )
  11. TimeGuiSetLeftC = { } function guiMoveLeftToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,(w1*4),(y),false) TimeGuiSetLeftC[gui] = setTimer(guiMoveLeftToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 <= x) then killTimer(TimeGuiSetLeftC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,(x1-10),y1,false) end end
  12. TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end
  13. تفضل مثل ما تبي و اعذرني على تاخير + و بدون فلوس كلنت # GUIEditor = { button = {}, window = {}, edit = {}, label = {} } GUIEditor.window[1] = guiCreateWindow(336, 215, 330, 328, "Welcome To our Server", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.50) GUIEditor.label[1] = guiCreateLabel(17, 65, 92, 28, "username :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(17, 140, 92, 28, "Password :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.edit[1] = guiCreateEdit(123, 60, 173, 38, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(123, 135, 173, 38, "", false, GUIEditor.window[1]) guiEditSetMasked(GUIEditor.edit[2], true) GUIEditor.button[1] = guiCreateButton(9, 244, 89, 48, "login", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.button[2] = guiCreateButton(108, 244, 89, 48, "Play as Guest", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") GUIEditor.button[3] = guiCreateButton(207, 244, 89, 48, "Register", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[1] then triggerServerEvent("onLogin",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) elseif source == GUIEditor.button[2] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) elseif source == GUIEditor.button[3] then triggerServerEvent("onReg",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) end end ) addEvent("Hidewindow",true) addEventHandler("Hidewindow",root, function () guiSetVisible(GUIEditor.window[1],false) showCursor(false) showChat(true) fadeCamera(true,5) end ) local sm = {} sm.moov = 0 sm.object1,sm.object2 = nil,nil local function removeCamHandler() if(sm.moov == 1)then sm.moov = 0 end end local function camRender() if (sm.moov == 1) then local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2) setCameraMatrix(x1,y1,z1,x2,y2,z2) end end addEventHandler("onClientPreRender",root,camRender) function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) if(sm.moov == 1)then return false end sm.object1 = createObject(1337,x1,y1,z1) sm.object2 = createObject(1337,x1t,y1t,z1t) setElementAlpha(sm.object1,0) setElementAlpha(sm.object2,0) setObjectScale(sm.object1,0.01) setObjectScale(sm.object2,0.01) moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") sm.moov = 1 setTimer(removeCamHandler,time,1) setTimer(destroyElement,time,1,sm.object1) setTimer(destroyElement,time,1,sm.object2) setTimer(setCameraTarget,time,1,localPlayer) end addEventHandler("onClientResourceStart", resourceRoot, function( ) smoothMoveCamera ( 1266.0865478516, -1658.5220947266, 73.064628601074, -1658.5220947266, -1287.0975341797, 73.064628601074, 366.80706787109, -1598.6693115234, 69.612487792969, 337.96209716797, -1620.0395507813, 106.43092346191, 10000) setTimer(function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) fadeCamera(false,5) end, 10100, 1) end ) سيرفر# addEvent("onLogin", true) addEventHandler("onLogin",root, function (player, user, pass, NameAccount, Password) local account = getAccount ( user, pass ) if ( account ~= true ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Logged in Sucessfuly!", player, 255, 255, 0 , true ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "Login Error!", player, 255, 0, 0 ) end else outputChatBox ( "Wrong username or password!", player, 255, 0, 0 ) end end ) -- addEvent("onReg", true) addEventHandler("onReg",root, function ( player, user, pass, NameAccount, Password ) local account = getAccount ( user, pass ) if ( account ~= false ) then if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "You Are Already Logged in !", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) end else account = addAccount ( user, pass ) if (logIn ( player, account, pass ) == true) then outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) triggerClientEvent (player, "Hidewindow", player) else outputChatBox ( "Register Error !", player, 255, 0, 0 ) end end end )
  14. خطا الكود + ماراح يشتغل كله حاطلي بالجدول staticimage ومانت مستخدمها ومستخدم window ومانت حاطها مع نفسك ما عدلت على كود غير الجدول + تعديل GUIEditor = { staticimage = {}, label = {} } dd = guiCreateStaticImage(150, 50, 674, 411, "1.png", false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, dd) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end )
  15. GUIEditor = { window = {}, <<<<<<< label = {} } GUIEditor = { staticimage = {}, label = {} } GUIEditor.window[1] = guiCreateStaticImage(150, 50, 674, 411, "Images/baba.png", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.label[1] = guiCreateLabel(100,0.1, 200, 0.5, "Shop - baba", true, GUIEditor.window[1]) addEventHandler("onClientRender",getRootElement(), function() x,y = guiGetPosition(GUIEditor.label[1],false) xN,xY = x + 2 , y if xN >= 650 then xN = -200 labelname = GUIEditor.label[1] guiLabelSetColor(GUIEditor.label[1],math.random(255),math.random(255),math.random(255)) end guiSetPosition(GUIEditor.label[1],xN,xY,false) end )
  16. ما شفت الموضوع زين افكر يبي ترايقر :0
  17. لا تضن triggerServerEvent ( string event, element theElement, [arguments...] ) event: The name of the event to trigger server-side. theElement: The element that is the source of the event. arguments...: A list of arguments to trigger with the event. You can pass any lua data type (except functions). You can also pass elements. مثال كلنت addEventHandler ( "onClientGUIClick", car, function () triggerServerEvent("clo1", localPlayer) end) سيرفر aaddEvent("clo1", true) addEventHandler("clo1",root, function () if ( vehicle ) then setVehicleColor(vehicle, 20, 60, 100 ) end end)
  18. + showCursor (true) اعطيه المود جاهز
  19. ظيف حدث عند بدء المهمه guiSetVisible(GUIEditor.window[1],true)
×
×
  • Create New...