Jump to content

momar5700

Members
  • Posts

    381
  • Joined

  • Last visited

Everything posted by momar5700

  1. wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") guiSetVisible(wnd,false) setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) انا بس ابي اعدل علي لوحة تسجيل بس مش عارف لانها كدا arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) وانا مثلا ابي احداثيات زر كدا 621, 372, 125, 125, ولاكن لما اغيرها لاكدا arabic = guiCreateButton(621, 372, 125, 125, "Ar",true,wnd) الاقي زر راح ليه لو سمحتم ابي حد يعلممني كيف اعدل عليه بس هو ده طلبي لاغير ياريت مساعدة
  2. طيب ليه كدا ماحد رد انا قلت بلقي اكثر من 3 ردو طلبي صعب ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
  3. عندي مشكلة وهي اخري طلب ومشكلة لها فياريت تساعدوني لو سمحتم اابي صورة والكلمات الي تيجي فوق صورة في نصف شاشة ممكن لو سمحتم ده اخري طلب ساعدوني لانها جاي جم شاشة لو سمحتم اخري طلب..... __________________________________________ عندي مشكلة وهي اخري طلب ومشكلة لها فياريت تساعدوني لو سمحتم اابي صورة والكلمات الي تيجي فوق صورة في نصف شاشة ممكن لو سمحتم ده اخري طلب ساعدوني لانها جاي جم شاشة لو سمحتم اخري طلب..... شف صورة شلون جاية انا مابيها كدا ابيها مثل ده فهمتو اتمنا تساعدوني في اقرب وقت كلنت function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") guiSetVisible(wnd,false) setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) addEventHandler("onClientResourceStart", resourceRoot, function() showChat(false) fadeCamera(false); end) local rot = 9 function dxDrawLoading() rot = rot + 2 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : MR.CR[A]SH", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : MR.CR[A]SH", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : MR.CR[A]SH", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : MR.CR[A]SH", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : MR.CR[A]SH", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "load.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true fadeCamera(true); setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) showChat(true) guiSetVisible(wnd,true) showCursor(true) guiSetInputEnabled(true) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,6000,1) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) showChat(false) fadeCamera(true); guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left)
  4. طيب ارفع الي عندك علي اي موقع وارسلوه لي كامل ياخي نسخت كودك وفعلا يجي تحميل بس مشكله هب شفت لوحة تسجيل يجي جمبها بظبط تحميل انا مابيها كدا ابيه اول ماتدخل سيرفر يجيك الشاشة سوداء وبعديت تجيل تحميل السي هي صورة تدور وبعد مايخلص تحميل يجي لوحة تسجيل .........................ز فهمتووووووووووووووووووووووووووووووووووووو
  5. ههههههههههههههههههههههههههههههههههههههههههههههههههههههههه انت وش سويت نفس المشكلة ماسويت شيء
  6. شفتوووووووووووووووووو ماحد يرددددددددددددددددددددددددددددددددددددددددددددددددددددددددد وش كم وش بتسوي لو قلت لكم كود كامل الووو وش بكم
  7. ياخي وش بكم 100 مرة قلت لكم ابيكم تعدلونه شف بعضيك رابط تحميله علشان تعرف مشكلة بنفسك http://up.top4top.net/downloadf-top4top ... 1-zip.html حملة وشوف وش يجيك يجك تحميل جم لوحة تسجيل وانا مابيها كدا انا ابي تحميل يجي قبل لوحة تسجيل فهمت اتمناء تساعدوني لو سمحتم :) --skype:momar5600
  8. اول شيء موضوع حج صحبي ثاني شيء كود انا الي سويته وخليته يعضيكم اياه ثالث شيء ماحد رد والحين طيب نبيكم تساعدونا هنا لو سمحتم
  9. سلام عليكم عندي مشكلة بهاد الكود ابي منكم تعدلونه لو سمحتم كلنت local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () rot = rot + 1 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "load.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end,100,1) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right)
  10. ياخي وش بكم انا طرحت لكم محاولتي وابيكم تعدلولي الكود وش بكم انا سويت كود local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () rot = rot + 1 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "load.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end,100,1) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right)
  11. شباب نتمني حد منكم يساعدنا شوي ممكن
  12. شباب نبيه كدا فهمتو لو سمحتم ساعدوني
  13. ايه والله ساعدونا شوي انا سويته وكل شيء ظبط وظهرت صورة بس ظهرت عندي مشكله local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () rot = rot + 1 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "load.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end,100,1) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right)
  14. انا سويته وعدلته بس طلع لي مشكله صورة الي تدور وكلمات تيجي جم لوحة تسجيل دخول وتروح بسرعا ماتلحق تعد لي 3 انا مابيه كدا ابي مثل قيم مود الوزارة لما تدخل سيرفر تجيك صورة تدور يعني مثل تحميل وبعدين لوة تسجيل كدا يعني........ local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "Images/Loading.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end,100,1) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right) bindKey("enter","down",enter) text = skin[1][2]
  15. انا سويته كدا local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "Images/Loading.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end, 15*1000, 1); end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right) bindKey("enter","down",enter) text = skin[1][2] end
  16. اوف مشكله نفسها دي بق يقول في غلط بسطر 70
  17. نسخته مانجح وش اسوي في غلط بسطر 69 local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", root, camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", root, camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end rot = 0 function dxDrawLoading() setTimer(function () if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "Images/Loading.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end end end,100,1) addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end end,500,1) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right) bindKey("enter","down",enter) text = skin[1][2]
  18. تكفون كيف احط الاقواس كيف اقفل addEventHandler("onClientResourceStart",resourceRoot, function () setTimer(function () function dxDrawLoading() rot = rot + 2 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "Images/Loading.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end)) addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end, 15*1000, 1); end, tonumber(math.random(5,10))*1000, 1);
  19. انا سويته كدا بس مانجح dxDrawRectangle_ = dxDrawRectangle dxDrawLine_ = dxDrawLine dxDrawText_ = dxDrawText dxDrawImage_ = dxDrawImage local sm = {} sm.moov = 0 sm.object1, sm.object2 = nil, nil local function removeCamHandler () if(sm.moov == 1) then sm.moov = 0 removeEventHandler ( "onClientPreRender", getRootElement(), camRender ) end end function camRender () if sm.object1 and isElement(sm.object1) then local x1, y1, z1 = getElementPosition ( sm.object1 ) local x2, y2, z2 = getElementPosition ( sm.object2 ) setCameraMatrix ( x1, y1, z1, x2, y2, z2 ) end end 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" ) addEventHandler ( "onClientPreRender", getRootElement(), camRender ) sm.moov = 1 setTimer ( removeCamHandler, time, 1 ) setTimer ( destroyElement, time, 1, sm.object1 ) setTimer ( destroyElement, time, 1, sm.object2 ) return true end function dxDrawLine(xs, ys, xe, ye, color, width, postgui) return dxDrawLine_((xs/1366)*screenW, (ys/768)*screenH, (xe/1366)*screenW, (ye/768)*screenH, color, width, postgui) end function dxDrawRectangle(x, y, w, h, color, postgui) return dxDrawRectangle_((x/1366)*screenW, (y/768)*screenH, (w/1366)*screenW, (h/768)*screenH, color, postgui) end function dxDrawText(text, x, y, w, h, color, size, font, alignl, alignt, clip, wordbreak, postgui, colorcoded, spp) return dxDrawText_(text, (x/1366)*screenW, (y/768)*screenH, (w/1366)*screenW, (h/768)*screenH, color, (size/1366)*screenW, font, alignl, alignt, clip, wordbreak, postgui, colorcoded, spp) end function dxDrawImage(x, y, w, h, image, rot, rw, ry, color, postgui) return dxDrawImage_((x/1366)*screenW, (y/768)*screenH, (w/1366)*screenW, (h/768)*screenH, image, rot, rw, ry, color, postgui) end function centerWindow(center_window) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(center_window,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(center_window,x,y,false) end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer(function () function dxDrawLoading() rot = rot + 2 if rot > 360 then rot = 0 end dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 - 1, 948 - 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 - 1, 948 + 1, 208 - 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 - 1, 178 + 1, 948 - 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418 + 1, 178 + 1, 948 + 1, 208 + 1, tocolor(0, 0, 0, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawText("Welcome To Server | GameMod By : momar5600", 418, 178, 948, 208, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, false, false, false) dxDrawImage(621, 372, 125, 125, "Images/Loading.png", rot) dxDrawText("Loading ....", 583, 342, 783, 362, tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, dxDrawLoading); setTimer( function () removeEventHandler("onClientRender", root, dxDrawLoading); if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(-2684.654296875,1933.3981933594,185.04570007324,-2684.6457519531,1932.5715332031,184.48304748535) sound = playSound ("ss.mp3",true) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("#0069c7 ## #ff0000 GameMode By #0069c7[#ff0000MR~#0069c7Mos.[T].aّّّfA~#ff0000] #0069c7##",255,0,0,true) end,500,1)) end)) wnd = guiCreateStaticImage(0,-268,389,268,"abed.png",false) english = guiCreateButton(0.0231,0.0284,0.0566,0.1082,"En",true,wnd) guiSetFont(english,"default-bold-small") setTimer(function() guiSetProperty(english, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) arabic = guiCreateButton(0.0848,0.0284,0.0566,0.1082,"Ar",true,wnd) guiSetFont(arabic,"default-bold-small") setTimer(function() guiSetProperty(arabic, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) user_l = guiCreateLabel(0.0206,0.1903,0.9614,0.0784,"Username",true,wnd) function Color ( ) guiLabelSetColor (user_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(user_l,"center",false) guiSetFont(user_l,"default-bold-small") user = guiCreateEdit(0.0231,0.2724,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(user, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) pass_l = guiCreateLabel(0.0206,0.4216,0.9614,0.0784,"Password",true,wnd) function Color ( ) guiLabelSetColor (pass_l, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) end setTimer ( Color, 1000, 0 ) guiLabelSetHorizontalAlign(pass_l,"center",false) guiSetFont(pass_l,"default-bold-small") pass = guiCreateEdit(0.0231,0.5187,0.9537,0.1306,"",true,wnd) setTimer(function() guiSetProperty(pass, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 100, 0) guiEditSetMasked(pass,true) remember = guiCreateCheckBox(0.0231,0.6642,0.3728,0.0746,"Remember Me !!",false,true,wnd) guiSetFont(remember,"default-bold-small") setTimer(function() guiSetProperty(remember, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) reg = guiCreateButton(0.5244,0.7724,0.3239,0.153,"Register",true,wnd) guiSetFont(reg,"default-bold-small") setTimer(function() guiSetProperty(reg, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) login = guiCreateButton(0.144,0.7724,0.3239,0.153,"Login",true,wnd) guiSetFont(login,"default-bold-small") setTimer(function() guiSetProperty(login, 'NormalTextColour', string.format("%.2X%.2X%.2X%.2X", 255, math.random(255), math.random(255), math.random(255))) end, 1000, 0) centerWindow(wnd) triggerServerEvent("onGetSave",localPlayer) addEvent("onPutSave",true) addEventHandler("onPutSave",root, function (puser,ppass) guiSetText(user,puser) guiSetText(pass,ppass) end ) addEventHandler("onClientGUIClick",root, function () if ( source == ex ) then guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() elseif ( source == english ) then guiSetText(user_l,"Username") guiSetText(pass_l,"Password") guiSetText(login,"Login") guiSetText(reg,"Register") guiSetText(remember,"Remember Me !!") elseif ( source == arabic ) then guiSetText(user_l,"اسم المستخدم") guiSetText(pass_l,"كلمه المرور") guiSetText(login,"تسجيل الدخول") guiSetText(reg,"حساب جديد") guiSetText(remember,"تذكرني") end end ) addEventHandler("onClientGUIClick",root, function () local user = guiGetText(user) local pass = guiGetText(pass) if ( source == login ) then if user ~= "" and pass ~= "" then if guiCheckBoxGetSelected(remember) then triggerServerEvent("onLoginWith",localPlayer,user,pass) else triggerServerEvent("onLogin",localPlayer,user,pass) end else outputChatBox("* You Must Write Username Or Password",255,0,0) end elseif ( source == reg ) then if user ~= "" and pass ~= "" then triggerServerEvent("onReg",localPlayer,user,pass) else outputChatBox("* You Must Write Username Or Password",255,0,0) end end end ) addEvent("onCl",true) addEventHandler("onCl",root, function () guiSetVisible(wnd,false) showCursor(false) guiSetInputEnabled(false) Show() end ) function setPlayerXYZ(x,y,z) local player = getLocalPlayer() setElementData(player,"x",x) setElementData(player,"y",y) setElementData(player,"z",z) end text = ".:[حياكم الله بسيرفر جراند العرب]:." dx = false skin = {{46,"ثوب ابيض"},{0,"cj"},{217,"شخصية الادمن"},{266,"شخصية الجوكر"}} num = 1 place = { {"النخيل",2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801,2119.56250,1396.94238,10.81252}, {"الدائري",1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996,1686.27844,1400.07080,10.74839}, {"ساحة القتال",414.17388916016,2046.4881591797,61.682598114014,413.30380249023,2046.0771484375,61.410533905029,277.93359,1988.82581,17.64063}, {"البداية",7968.8471679688,-3036.4885253906,32.74340057373,7968.00390625,-3036.0454101563,32.439910888672,7955.44043,-3000.18726,5.40781}, {"الطعس",-2750.5700683594,-2616.154296875,26.364200592041,-2750.1618652344,-2615.2575683594,26.193408966064,-2682.37036,-2549.38403,3.23208}, } --[[ 1- 7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693, 2- 7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729, -2719.56055,-318.80200,71.47559 ]]--[[ 2086.59619,1472.00696,10.82031 2040.5595703125,1424.5876464844,38.590599060059,2040.6915283203,1425.5034179688,38.211277008057 ---------------------------------------------------------------------------------------------------------------- 2109.34326,1549.89893,10.82031 2021.6854248047,1441.3870849609,40.58459854126,2022.5858154297,1441.0551757813,40.303291320801 1686.27844 1400.07080 10.74839 1869.2296142578,1426.2882080078,74.245399475098,1868.2775878906,1426.3618164063,73.948387145996 ]] function Show() smoothMoveCamera(7861.3447265625,-2983.4196777344,27.067300796509,7861.7626953125,-2984.2622070313,26.727567672729,7892.251953125,-3044.7609863281,8.2206001281738,7892.4155273438,-3045.7424316406,8.1202297210693,2000) ped = createPed(skin[1][1],7893.16943,-3050.25659,7.05853) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right)
  20. يعني مثل كدا dxDrawRectangle_ = dxDrawRectangle dxDrawLine_ = dxDrawLine dxDrawText_ = dxDrawText dxDrawImage_ = dxDrawImage
  21. طيب ممكن تعرفه اول قول لي كيف اعرفة
  22. انا الحين خليت لوحة بصورة dx بس لما خليتها ظهرت لي مشكله انه لما اول ماتدخل سيرفر تجيك الوحة كيف اظبطها -- M7mdAl7arthy -- -- Skype: M7mdAl7arthy -- -- Updated: 3NAD -- getTDByType = { --[[ { 'car name', car id, 'file Path' }; --]] { '1sHiLuX_Khli-909-2014', 491, 'xCar7' }; { 'Camry 2006', 585, 'xCar17' }; { 'Taho', 502, 'xCar20' }; }; Languages = { ["English"] = { ["Information"] = "Welcome @ 6ArH Server's, \n\nIf you have a bad Video Card ' Law FPS '\nof Real Cars,\n\nYou can stop it by this script..\n\nIt's so easily :\n- Select any car.\n- Press \" Run / Stop Selected \".\n\nYou can open this window again\nby pressing ' / '\n\nWe hope you have fun : )"; ["Run Or Stop"] = "Run / Stop Selected"; ["Run All"] = "Run All"; ["Stop All"] = "Stop All"; }; ["عربي"] = { ["Information"] = "مرحباً بكم في سيرفرات طارهـ,\n\nإذا كآن لديك كرت شاشة سيء ' FPS منخفض '\nو تعاني من الـ ' لاق ' بـسبب السيارات\n\nيمكنك إيقاف السيارات بواسطة هذا السكربت\n\nتابع الخطوات :\n- أختر اي سيارة من القائمة.\n- أضغط ' إيقاف / تشغيل '.\n\nيمكنك فتح هذه النافذة مرة أخرى\nبواسطة الزر ' ظ '\n\n نتمنى لكم قضاء اوقات سعيدة"; ["Run Or Stop"] = "تشغيل / إيقاف"; ["Run All"] = "تشغيل الكل"; ["Stop All"] = "إيقاف الكل"; }; } Enad = { button = {}, window = {}, gridlist = {}, label = {}, combobox = {}, } function guiCreateWindow( x2, y2, width2, height2, titleBarText2, relative2 ) local mainBackground = guiCreateStaticImage ( x2, y2, width2, height2, "Back.png", relative2 ) local mainBackgroundLabel = guiCreateLabel ( 91, 29, 611, 544, titleBarText2, false, mainBackground ) guiSetFont ( mainBackgroundLabel, newFont2 ) guiSetEnabled ( mainBackgroundLabel, false ) return mainBackground end load_ = true i = true addEventHandler("onClientResourceStart", resourceRoot, function() Enad.window[1] = guiCreateWindow(120, 138, 571, 328, "", false) guiWindowSetSizable(Enad.window[1], false) Enad.gridlist[1] = guiCreateGridList(18, 28, 264, 252, false, Enad.window[1]) Enad.label[1] = guiCreateLabel(294, 59, 266, 252, "Welcome @ 6ArH Server's, \n\nIf you have a bad Video Card ' Law FPS '\nof Real Cars,\n\nYou can stop it by this script..\n\nIt's so easily :\n- Select any car.\n- Press \" Run / Stop Selected \".\n\nYou can open this window again\nby pressing ' / '\n\nWe hope you have fun : )", false, Enad.window[1]) Enad.button[1] = guiCreateButton(36, 285, 126, 34, "Run / Stop Selected", false, Enad.window[1]) guiSetProperty(Enad.button[1], "NormalTextColour", "FFAAAAAA") Enad.combobox[1] = guiCreateComboBox(307, 28, 197, 100, "English", false, Enad.window[1]) Enad.button[2] = guiCreateButton(516, 25, 32, 25, "X", false, Enad.window[1]) guiSetProperty(Enad.button[2], "NormalTextColour", "FFAAAAAA") Enad.button[3] = guiCreateButton(166, 285, 90, 34, "Stop All", false, Enad.window[1]) guiSetProperty(Enad.button[3], "NormalTextColour", "FFAAAAAA") --Enad.button[4] = guiCreateButton(218, 285, 72, 34, "Run All", false, Enad.window[1]) --guiSetProperty(Enad.button[4], "NormalTextColour", "FFAAAAAA") Column2 = guiGridListAddColumn( Enad.gridlist[1], 'ID', .25 ) Column2_ = guiGridListAddColumn( Enad.gridlist[1], 'Vehicle', .60 ) end ) for _, type in ipairs( getTDByType )do local gRow = guiGridListAddRow( Enad.gridlist[1] ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2, tostring( type[ 2 ] ), false, false ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2_, tostring( type[ 1 ] ), false, false ) t = guiGridListSetItemData( Enad.gridlist[1], gRow, Column2_, tostring( type[ 3 ] ) ) guiGridListSetItemColor ( Enad.gridlist[1], gRow, Column2, 0, 255, 0 ) end addEventHandler ( "onClientGUIClick", root, function ( ) if source == Enad.button[1] then local iRow, iCol = guiGridListGetSelectedItem( Enad.gridlist[1] ) if( iRow and iCol and iRow ~= -1 and iCol ~= -1 )then local ID = tonumber( guiGridListGetItemText( Enad.gridlist[1], iRow, 1 ) ) local CN = tostring( guiGridListGetItemText( Enad.gridlist[1], iRow, 2 ) ) local filePath = tostring( guiGridListGetItemData( Enad.gridlist[1], iRow, 2 ) ) if( ID ~= '' )then if fileExists( ':'.. filePath ..'/'.. ID ..'.txd' ) and fileExists( ':'.. filePath ..'/'.. ID ..'.dff', ID ) then if not( engineRestoreModel( ID ) )then engineImportTXD( engineLoadTXD( ':'.. filePath ..'/'.. ID ..'.txd' ), ID ) engineReplaceModel( engineLoadDFF( ':'.. filePath ..'/'.. ID ..'.dff', ID ), ID ) guiGridListSetItemColor ( Enad.gridlist[1], iRow, 1, 0, 255, 0 ) load_ = true else guiGridListSetItemColor ( Enad.gridlist[1], iRow, 1, 255, 0, 0 ) load_ = false end guiSetEnabled ( source, false ) setTimer ( guiSetEnabled, 3000, 1, source, true ) else if i == true then guiGridListSetItemColor ( Enad.gridlist[1], iRow, 1, 255, 255, 0 ) i = false setTimer( function( ) i = true end, 5000, 1 ) end end end end elseif source == Enad.button[2] then guiSetVisible ( Enad.window[1], false ) showCursor ( false ) executeCommandHandler ( "onStartPlay_" ) bindKey( '/', 'down', 'rr_' ) elseif source == Enad.button[3] then guiSetEnabled ( source, false ) setTimer ( guiSetEnabled, 10000, 1, source, true ) if not load_ then return end load_ = false for i, type in ipairs( getTDByType )do if fileExists( ':'.. type[3] ..'/'.. type[2] ..'.txd' ) and fileExists( ':'.. type[3] ..'/'.. type[2] ..'.dff', type[2] ) then engineRestoreModel( type[2] ) end end guiGridListClear ( Enad.gridlist[1] ) for _, type in ipairs( getTDByType )do local gRow = guiGridListAddRow( Enad.gridlist[1] ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2, tostring( type[ 2 ] ), false, false ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2_, tostring( type[ 1 ] ), false, false ) t = guiGridListSetItemData( Enad.gridlist[1], gRow, Column2_, tostring( type[ 3 ] ) ) guiGridListSetItemColor ( Enad.gridlist[1], gRow, Column2, 255, 0, 0 ) end elseif source == Enad.button[4] then guiSetEnabled ( source, false ) setTimer ( guiSetEnabled, 10000, 1, source, true ) if load_ then return end load_ = true if isTimer ( loadTimer ) then killTimer ( loadTimer ) end loadTimer = setTimer ( function ( ) for i, type in ipairs( getTDByType )do if fileExists( ':'.. type[3] ..'/'.. type[2] ..'.txd' ) and fileExists( ':'.. type[3] ..'/'.. type[2] ..'.dff', type[2] ) then engineImportTXD( engineLoadTXD( ':'.. type[3] ..'/'.. type[2] ..'.txd' ), type[2] ) engineReplaceModel( engineLoadDFF( ':'.. type[3] ..'/'.. type[2] ..'.dff', type[2] ), type[2] ) end end end , 1500, 1 ) guiGridListClear ( Enad.gridlist[1] ) for _, type in ipairs( getTDByType )do local gRow = guiGridListAddRow( Enad.gridlist[1] ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2, tostring( type[ 2 ] ), false, false ) guiGridListSetItemText( Enad.gridlist[1], gRow, Column2_, tostring( type[ 1 ] ), false, false ) t = guiGridListSetItemData( Enad.gridlist[1], gRow, Column2_, tostring( type[ 3 ] ) ) guiGridListSetItemColor ( Enad.gridlist[1], gRow, Column2, 0, 255, 0 ) end if isTimer ( Timer ) then killTimer ( Timer ) end resetProgress_ ( pp_ ) fadeCamera ( false ) Timer = setTimer ( upgradeValues_, 50, 0, pp_ ) end end ) for i, v in pairs ( Languages ) do guiComboBoxAddItem ( Enad.combobox[1], tostring ( i ) ) end addEventHandler ( "onClientGUIComboBoxAccepted", Enad.combobox[1], function ( ) local text = tostring ( guiComboBoxGetItemText ( source, guiComboBoxGetSelected ( source ) ) ) if text == "" then return end if text == "عربي" then guiLabelSetHorizontalAlign ( Enad.label[1], "right" ) else guiLabelSetHorizontalAlign ( Enad.label[1], "left" ) end guiSetText ( Enad.label[1], Languages[text]["Information"] ) guiSetText ( Enad.button[1], Languages[text]["Run Or Stop"] ) guiSetText ( Enad.button[4], Languages[text]["Run All"] ) guiSetText ( Enad.button[3], Languages[text]["Stop All"] ) end , false ) addCommandHandler( 'openOptionsCar', function( ) if not guiGetVisible ( Enad.window[1] ) then guiSetVisible( Enad.window[1], true ) showCursor( true ) guiBringToFront( Enad.window[1] ) guiSetVisible ( Enad.button[2], true ) end end ) addCommandHandler( 'rr_', function ( ) if not guiGetVisible ( Enad.window[1] ) then guiSetVisible( Enad.window[1], true ) showCursor( true ) guiBringToFront( Enad.window[1] ) guiSetVisible ( Enad.button[2], false ) else guiSetVisible( Enad.window[1], false ) showCursor( false ) end end ) --[[ addCommandHandler( 'reall', function( ) for i, type in ipairs( getTDByType )do if fileExists( ':'.. type[3] ..'/'.. type[2] ..'.txd' ) and fileExists( ':'.. type[3] ..'/'.. type[2] ..'.dff', type[2] ) then if not( engineRestoreModel( type[2] ) )then engineImportTXD( engineLoadTXD( ':'.. type[3] ..'/'.. type[2] ..'.txd' ), type[2] ) engineReplaceModel( engineLoadDFF( ':'.. type[3] ..'/'.. type[2] ..'.dff', type[2] ), type[2] ) end end end end )]] setTimer(function() guiLabelSetColor(Enad.label[1], math.random(0,255), math.random(0,255), math.random(0,255)) end, 800, 0) function say() outputChatBox ("~| (m) آلي عنده مشكلهمن ضعف كرد شاشة اطغط m لايقاف سيرات |~" ,255, 255,0,true ) end setTimer ( say, 60000, 0)
×
×
  • Create New...