sho8 Posted February 20, 2016 Share Posted February 20, 2016 السلام عليككم حبيت اسوي اعدل علي قيم مود حق طلال اتوقع كلكم تعرفونه لاكن واجهتني مشاكل اتمني تفيدوني local _guiCreateWindow = guiCreateWindow local Sw, Sh = guiGetScreenSize( ) local Width = 800 -- عرض الشاشة local Height = 600 -- طول الشاشة local showItemsLod_ = true 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 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 () if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(1507.71631,-1657.00586,20.79688,1540.93384,-1681.96313,13.55156) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("# Ebda3 Login Panel By Sho8",255,0,0,true) end,500,1) end ) --- Login Register Window function Login() dxDrawLine(Sw*(284/Width) -1, Sh*(185/Height) -1, Sw*(284/Width) -1, Sh*(377/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(550/Width) , Sh*(185/Height) -1, Sw*(284/Width) -1, Sh*(185/Height) -1, tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(284/Width) -1, Sh*(377/Height), Sw*(550/Width), Sh*(377/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(550/Width), Sh*(377/Height), Sw*(550/Width), Sh*(185/Height) -1, tocolor(234, 8, 8, 255), 1, false) dxDrawRectangle(Sw*(284/Width), Sh*(185/Height), Sw*(266/Width), Sh*(192/Height), tocolor(0, 0, 0, 141), false) dxDrawLine(Sw*(284/Width), Sh*(214/Height), Sw*(550/Width), Sh*(214/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width), Sh*(186/Height), Sw*(508/Width), Sh*(214/Height), tocolor(255, 255, 255, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine( Sw*(442/Width) -1, Sh*(326/Height) -1, Sw*(422/Width) -1, Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(529/Width), Sh*(326/Height) -1, Sw*(442/Width) -1, Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(442/Width) -1, Sh*(357/Height) , Sw*(529/Width) , Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(529/Width), Sh*(357/Height) , Sw*(529/Width) , Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(Sw*(442/Width), Sh*(326/Height) , Sw*(87/Width) , Sh*(31/Height), tocolor(234, 8, 8, 255), false) dxDrawText("Name :-", Sw*(303/Width) - 1, Sh*(245/Height) - 1, Sw*(344/Width) - 1, Sh*(267/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) + 1, Sh*(245/Height) - 1, Sw*(344/Width) + 1, Sh*(267/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) - 1, Sh*(245/Height) + 1, Sw*(344/Width) - 1, Sh*(267/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) + 1, Sh*(245/Height) + 1, Sw*(344/Width) + 1, Sh*(267/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width), Sh*(245/Height) , Sw*(344/Width) , Sh*(267/Height), tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) - 1, Sh*(286/Height) - 1, Sw*(344/Width) - 1, Sh*(308/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) + 1, Sh*(286/Height) - 1, Sw*(344/Width) + 1, Sh*(308/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) - 1, Sh*(286/Height) + 1, Sw*(344/Width) - 1, Sh*(308/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) + 1, Sh*(286/Height) + 1, Sw*(344/Width) + 1, Sh*(308/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) , Sh*(286/Height) , Sw*(344/Width) , Sh*(308/Height) , tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(Sw*(349/Width) - 1, Sh*(326/Height) - 1 , Sw*(349/Width) - 1 , Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(436/Width) , Sh*(326/Height) -1, Sw*(349/Width) -1, Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(349/Width) - 1 , Sh*(357/Height), Sw*(436/Width), Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(436/Width), Sh*(357/Height), Sw*(436/Width), Sh*(326/Height) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), tocolor(234, 8, 8, 255), false) dxDrawText("[ Login ]", Sw*(370/Width) -1, Sh*(335/Height) -1, Sw*(417/Width) -1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) +1, Sh*(335/Height) -1, Sw*(417/Width) +1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) -1, Sh*(335/Height) +1, Sw*(417/Width) -1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) +1, Sh*(335/Height) +1, Sw*(417/Width) +1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) , Sh*(335/Height) , Sw*(417/Width) , Sh*(347/Height) , tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) -1, Sh*(335/Height) -1, Sw*(509/Width) -1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) +1, Sh*(335/Height) -1, Sw*(509/Width) +1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) -1, Sh*(335/Height) +1, Sw*(509/Width) -1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) +1, Sh*(335/Height) +1, Sw*(509/Width) +1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) , Sh*(335/Height) , Sw*(509/Width) , Sh*(347/Height) , tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) end GUIEditor = { Button = {}, Edit = {} } GUIEditor.Button[4] = guiCreateButton(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[4], 0.17) GUIEditor.Button[3] = guiCreateButton(Sw*(442/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[3], 0.17) GUIEditor.Edit[1] = guiCreateEdit(Sw*(349/Width), Sh*(240/Height), Sw*(180/Width), Sh*(31/Height), "", false) GUIEditor.Edit[2] = guiCreateEdit(Sw*(349/Width), Sh*(280/Height), Sw*(180/Width), Sh*(31/Height), "", false) local sound = playSound("http://f13.wapka-files.com/download/e/5/8/1915080_e58b1b988f6452d21f5c7c55.mp3/1d277bc65e9d17347f35/%D9%85%D8%AD%D9%85%D8%AF%2B%D8%A7%D9%84%D8%AD%D8%AF%D8%A7%D8%AF%2B%D9%85%D8%B6%D9%8A%2B%D8%A7%D9%84%D8%B5%D8%AF%D9%82.mp3",false) guiSetVisible ( GUIEditor.Button[4], false ) guiSetVisible ( GUIEditor.Button[3], false ) guiSetVisible ( GUIEditor.Edit[1], false ) guiSetVisible ( GUIEditor.Edit[2], false ) 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,"ألثوب ألآبيـض"},{124,"ألثوب ألآسـود"},{0,"CJ-سي جي"},{288,"شـرطي"},{285,"سـوات"},{287,"Army-ألجيش"}} num = 1 place = { {"البداية الرئيسية",-3466.92041,-3078.54395,10.99545,-3447.27100,-3006.81567,4.99545,-3446.39111,-3002.23340,5.11145}, {"سـاححة ألقتـال",339.09109,1922.91882,70.64735,293.21634,1981.64270,17.64063,278.05737,1990.96753,17.64063}, {"الدايري",1747.32800, 1453.57642, 20.80588,1713.06812,1455.77283,10.73905,1688.45264,1447.76941,10.76774}, {"ألنخيل",2129.15308, 1449.49414, 17.82031,2124.62500,1408.66431,10.82031,2135.84058,1393.37354,10.82031}, {"الشارع الطويل",-2989.02222, -3005.03931, 10.00000,-3074.15283,-3004.70459,5.00000,-3089.02979,-3004.51563,5.00000}, } function Show() smoothMoveCamera(1507.71631,-1657.00586,20.79688,1540.35193,-1683.56323,13.55043,1550.02844,-1675.77466,17.22804,1552.95728,-1675.67700,16.19531,2000) ped = createPed(skin[1][1],1553.85632,-1675.70471,16.19531,90) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right) bindKey("enter","down",enter) text = skin[1][2] end function left() if num == 1 then num = #skin else num = num - 1 end setElementModel(ped,skin[num][1]) text = skin[num][2] playSoundFrontEnd(32) end function right() if num == #skin then num = 1 else num = num + 1 end setElementModel(ped,skin[num][1]) text = skin[num][2] playSoundFrontEnd(32) end function enter() playSoundFrontEnd(33) destroyElement(ped) unbindKey("arrow_l") unbindKey("arrow_r") unbindKey("enter") setElementData(localPlayer,"skin",skin[num][1]) num = 1 text = place[num][1] setCameraMatrix(place[num][2],place[num][3],place[num][4],place[num][5],place[num][6],place[num][7]) dx = true bindKey("arrow_l","down",Pleft) bindKey("arrow_r","down",Pright) bindKey("enter","down",Penter) end addEventHandler("onClientRender",root, function () local size = {guiGetScreenSize()} if dx == true then dxDrawText("\n( " .. text .. " )",1,0,size[1] + 1,size[2],tocolor(0,0,0,255),3,"default-bold","center","top",false,false,false,true) dxDrawText("\n( " .. text .. " )",0,0,size[1],size[2],tocolor(255,0,0,255),3,"default-bold","center","top",false,false,false,true) end end ) function Pleft() if num == 1 then num = #place else num = num - 1 end text = place Link to comment
Ja[B]er[X]Pro Posted February 20, 2016 Share Posted February 20, 2016 السلام عليككم حبيت اسوي اعدل علي قيم مود حق طلال اتوقع كلكم تعرفونه لاكن واجهتني مشاكل اتمني تفيدوني local _guiCreateWindow = guiCreateWindow local Sw, Sh = guiGetScreenSize( ) local Width = 800 -- عرض الشاشة local Height = 600 -- طول الشاشة local showItemsLod_ = true 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 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 () if isPedInVehicle(localPlayer) then destroyElement(getPedOccupiedVehicle(localPlayer)) end dx = true setCameraMatrix(1507.71631,-1657.00586,20.79688,1540.93384,-1681.96313,13.55156) setTime(1,0) showCursor(true) guiSetInputEnabled(true) fadeCamera(true) showChat(false) setElementDimension(localPlayer,0) setElementData(localPlayer,"new",false) outputChatBox("# Ebda3 Login Panel By Sho8",255,0,0,true) end,500,1) end ) --- Login Register Window function Login() dxDrawLine(Sw*(284/Width) -1, Sh*(185/Height) -1, Sw*(284/Width) -1, Sh*(377/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(550/Width) , Sh*(185/Height) -1, Sw*(284/Width) -1, Sh*(185/Height) -1, tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(284/Width) -1, Sh*(377/Height), Sw*(550/Width), Sh*(377/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawLine(Sw*(550/Width), Sh*(377/Height), Sw*(550/Width), Sh*(185/Height) -1, tocolor(234, 8, 8, 255), 1, false) dxDrawRectangle(Sw*(284/Width), Sh*(185/Height), Sw*(266/Width), Sh*(192/Height), tocolor(0, 0, 0, 141), false) dxDrawLine(Sw*(284/Width), Sh*(214/Height), Sw*(550/Width), Sh*(214/Height), tocolor(234, 8, 8, 255), 1, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width) - 1, Sh*(186/Height) - 1, Sw*(508/Width) - 1, Sh*(214/Height) - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Welcome To Server ]", Sw*(323/Width), Sh*(186/Height), Sw*(508/Width), Sh*(214/Height), tocolor(255, 255, 255, 255), 1.30, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine( Sw*(442/Width) -1, Sh*(326/Height) -1, Sw*(422/Width) -1, Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(529/Width), Sh*(326/Height) -1, Sw*(442/Width) -1, Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(442/Width) -1, Sh*(357/Height) , Sw*(529/Width) , Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(529/Width), Sh*(357/Height) , Sw*(529/Width) , Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(Sw*(442/Width), Sh*(326/Height) , Sw*(87/Width) , Sh*(31/Height), tocolor(234, 8, 8, 255), false) dxDrawText("Name :-", Sw*(303/Width) - 1, Sh*(245/Height) - 1, Sw*(344/Width) - 1, Sh*(267/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) + 1, Sh*(245/Height) - 1, Sw*(344/Width) + 1, Sh*(267/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) - 1, Sh*(245/Height) + 1, Sw*(344/Width) - 1, Sh*(267/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width) + 1, Sh*(245/Height) + 1, Sw*(344/Width) + 1, Sh*(267/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Name :-", Sw*(303/Width), Sh*(245/Height) , Sw*(344/Width) , Sh*(267/Height), tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) - 1, Sh*(286/Height) - 1, Sw*(344/Width) - 1, Sh*(308/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) + 1, Sh*(286/Height) - 1, Sw*(344/Width) + 1, Sh*(308/Height) - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) - 1, Sh*(286/Height) + 1, Sw*(344/Width) - 1, Sh*(308/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) + 1, Sh*(286/Height) + 1, Sw*(344/Width) + 1, Sh*(308/Height) + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("Pass :-", Sw*(303/Width) , Sh*(286/Height) , Sw*(344/Width) , Sh*(308/Height) , tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawLine(Sw*(349/Width) - 1, Sh*(326/Height) - 1 , Sw*(349/Width) - 1 , Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(436/Width) , Sh*(326/Height) -1, Sw*(349/Width) -1, Sh*(326/Height) -1, tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(349/Width) - 1 , Sh*(357/Height), Sw*(436/Width), Sh*(357/Height), tocolor(0, 0, 0, 255), 1, false) dxDrawLine(Sw*(436/Width), Sh*(357/Height), Sw*(436/Width), Sh*(326/Height) - 1, tocolor(0, 0, 0, 255), 1, false) dxDrawRectangle(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), tocolor(234, 8, 8, 255), false) dxDrawText("[ Login ]", Sw*(370/Width) -1, Sh*(335/Height) -1, Sw*(417/Width) -1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) +1, Sh*(335/Height) -1, Sw*(417/Width) +1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) -1, Sh*(335/Height) +1, Sw*(417/Width) -1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) +1, Sh*(335/Height) +1, Sw*(417/Width) +1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Login ]", Sw*(370/Width) , Sh*(335/Height) , Sw*(417/Width) , Sh*(347/Height) , tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) -1, Sh*(335/Height) -1, Sw*(509/Width) -1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) +1, Sh*(335/Height) -1, Sw*(509/Width) +1, Sh*(347/Height) -1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) -1, Sh*(335/Height) +1, Sw*(509/Width) -1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) +1, Sh*(335/Height) +1, Sw*(509/Width) +1, Sh*(347/Height) +1, tocolor(0, 0, 0, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("[ Register ]", Sw*(462/Width) , Sh*(335/Height) , Sw*(509/Width) , Sh*(347/Height) , tocolor(255, 255, 255, 255), 1.20, "default-bold", "center", "center", false, false, false, false, false) end GUIEditor = { Button = {}, Edit = {} } GUIEditor.Button[4] = guiCreateButton(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[4], 0.17) GUIEditor.Button[3] = guiCreateButton(Sw*(442/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[3], 0.17) GUIEditor.Edit[1] = guiCreateEdit(Sw*(349/Width), Sh*(240/Height), Sw*(180/Width), Sh*(31/Height), "", false) GUIEditor.Edit[2] = guiCreateEdit(Sw*(349/Width), Sh*(280/Height), Sw*(180/Width), Sh*(31/Height), "", false) local sound = playSound("http://f13.wapka-files.com/download/e/5/8/1915080_e58b1b988f6452d21f5c7c55.mp3/1d277bc65e9d17347f35/%D9%85%D8%AD%D9%85%D8%AF%2B%D8%A7%D9%84%D8%AD%D8%AF%D8%A7%D8%AF%2B%D9%85%D8%B6%D9%8A%2B%D8%A7%D9%84%D8%B5%D8%AF%D9%82.mp3",false) guiSetVisible ( GUIEditor.Button[4], false ) guiSetVisible ( GUIEditor.Button[3], false ) guiSetVisible ( GUIEditor.Edit[1], false ) guiSetVisible ( GUIEditor.Edit[2], false ) 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,"ألثوب ألآبيـض"},{124,"ألثوب ألآسـود"},{0,"CJ-سي جي"},{288,"شـرطي"},{285,"سـوات"},{287,"Army-ألجيش"}} num = 1 place = { {"البداية الرئيسية",-3466.92041,-3078.54395,10.99545,-3447.27100,-3006.81567,4.99545,-3446.39111,-3002.23340,5.11145}, {"سـاححة ألقتـال",339.09109,1922.91882,70.64735,293.21634,1981.64270,17.64063,278.05737,1990.96753,17.64063}, {"الدايري",1747.32800, 1453.57642, 20.80588,1713.06812,1455.77283,10.73905,1688.45264,1447.76941,10.76774}, {"ألنخيل",2129.15308, 1449.49414, 17.82031,2124.62500,1408.66431,10.82031,2135.84058,1393.37354,10.82031}, {"الشارع الطويل",-2989.02222, -3005.03931, 10.00000,-3074.15283,-3004.70459,5.00000,-3089.02979,-3004.51563,5.00000}, } function Show() smoothMoveCamera(1507.71631,-1657.00586,20.79688,1540.35193,-1683.56323,13.55043,1550.02844,-1675.77466,17.22804,1552.95728,-1675.67700,16.19531,2000) ped = createPed(skin[1][1],1553.85632,-1675.70471,16.19531,90) bindKey("arrow_l","down",left) bindKey("arrow_r","down",right) bindKey("enter","down",enter) text = skin[1][2] end function left() if num == 1 then num = #skin else num = num - 1 end setElementModel(ped,skin[num][1]) text = skin[num][2] playSoundFrontEnd(32) end function right() if num == #skin then num = 1 else num = num + 1 end setElementModel(ped,skin[num][1]) text = skin[num][2] playSoundFrontEnd(32) end function enter() playSoundFrontEnd(33) destroyElement(ped) unbindKey("arrow_l") unbindKey("arrow_r") unbindKey("enter") setElementData(localPlayer,"skin",skin[num][1]) num = 1 text = place[num][1] setCameraMatrix(place[num][2],place[num][3],place[num][4],place[num][5],place[num][6],place[num][7]) dx = true bindKey("arrow_l","down",Pleft) bindKey("arrow_r","down",Pright) bindKey("enter","down",Penter) end addEventHandler("onClientRender",root, function () local size = {guiGetScreenSize()} if dx == true then dxDrawText("\n( " .. text .. " )",1,0,size[1] + 1,size[2],tocolor(0,0,0,255),3,"default-bold","center","top",false,false,false,true) dxDrawText("\n( " .. text .. " )",0,0,size[1],size[2],tocolor(255,0,0,255),3,"default-bold","center","top",false,false,false,true) end end ) function Pleft() if num == 1 then num = #place else num = num - Link to comment
MuhannaDx Posted February 20, 2016 Share Posted February 20, 2016 شوف اخطاءك سطر 121 GUIEditor.Button[4] = guiCreateButton(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[4], 0.17) GUIEditor.Button[3] = guiCreateButton(Sw*(442/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[3], 0.17) GUIEditor.Edit[1] = guiCreateEdit(Sw*(349/Width), Sh*(240/Height), Sw*(180/Width), Sh*(31/Height), "", false) GUIEditor.Edit[2] = guiCreateEdit(Sw*(349/Width), Sh*(280/Height), Sw*(180/Width), Sh*(31/Height), "", false) local sound = playSound("http://f13.wapka-files.com/download/e/5/8/1915080_e58b1b988f6452d21f5c7c55.mp3/1d277bc65e9d17347f35/%D9%85%D8%AD%D9%85%D8%AF%2B%D8%A7%D9%84%D8%AD%D8%AF%D8%A7%D8%AF%2B%D9%85%D8%B6%D9%8A%2B%D8%A7%D9%84%D8%B5%D8%AF%D9%82.mp3",false) guiSetVisible ( GUIEditor.Button[4], false ) guiSetVisible ( GUIEditor.Button[3], false ) guiSetVisible ( GUIEditor.Edit[1], false ) guiSetVisible ( GUIEditor.Edit[2], false ) end -- حقت ايش ؟ ) -- حقت ايش ؟ الخطا : end + ) مالهم داعي او فائدة امسحهم وجرب Link to comment
sho8 Posted February 20, 2016 Author Share Posted February 20, 2016 شوف اخطاءك سطر 121 GUIEditor.Button[4] = guiCreateButton(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[4], 0.17) GUIEditor.Button[3] = guiCreateButton(Sw*(442/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[3], 0.17) GUIEditor.Edit[1] = guiCreateEdit(Sw*(349/Width), Sh*(240/Height), Sw*(180/Width), Sh*(31/Height), "", false) GUIEditor.Edit[2] = guiCreateEdit(Sw*(349/Width), Sh*(280/Height), Sw*(180/Width), Sh*(31/Height), "", false) local sound = playSound("http://f13.wapka-files.com/download/e/5/8/1915080_e58b1b988f6452d21f5c7c55.mp3/1d277bc65e9d17347f35/%D9%85%D8%AD%D9%85%D8%AF%2B%D8%A7%D9%84%D8%AD%D8%AF%D8%A7%D8%AF%2B%D9%85%D8%B6%D9%8A%2B%D8%A7%D9%84%D8%B5%D8%AF%D9%82.mp3",false) guiSetVisible ( GUIEditor.Button[4], false ) guiSetVisible ( GUIEditor.Button[3], false ) guiSetVisible ( GUIEditor.Edit[1], false ) guiSetVisible ( GUIEditor.Edit[2], false ) end -- حقت ايش ؟ ) -- حقت ايش ؟ الخطا : end + ) مالهم داعي او فائدة امسحهم وجرب ياخوي انحلت المشكله الاوله اما الثانيه القيم مود فيه خراب يوم مسحت الـ end زبط اما الحين القيم مود فيه خراب معلق Link to comment
sho8 Posted February 21, 2016 Author Share Posted February 21, 2016 شوف اخطاءك سطر 121 GUIEditor.Button[4] = guiCreateButton(Sw*(349/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[4], 0.17) GUIEditor.Button[3] = guiCreateButton(Sw*(442/Width), Sh*(326/Height), Sw*(87/Width), Sh*(31/Height), "", false) guiSetAlpha(GUIEditor.Button[3], 0.17) GUIEditor.Edit[1] = guiCreateEdit(Sw*(349/Width), Sh*(240/Height), Sw*(180/Width), Sh*(31/Height), "", false) GUIEditor.Edit[2] = guiCreateEdit(Sw*(349/Width), Sh*(280/Height), Sw*(180/Width), Sh*(31/Height), "", false) local sound = playSound("http://f13.wapka-files.com/download/e/5/8/1915080_e58b1b988f6452d21f5c7c55.mp3/1d277bc65e9d17347f35/%D9%85%D8%AD%D9%85%D8%AF%2B%D8%A7%D9%84%D8%AD%D8%AF%D8%A7%D8%AF%2B%D9%85%D8%B6%D9%8A%2B%D8%A7%D9%84%D8%B5%D8%AF%D9%82.mp3",false) guiSetVisible ( GUIEditor.Button[4], false ) guiSetVisible ( GUIEditor.Button[3], false ) guiSetVisible ( GUIEditor.Edit[1], false ) guiSetVisible ( GUIEditor.Edit[2], false ) end -- حقت ايش ؟ ) -- حقت ايش ؟ الخطا : end + ) مالهم داعي او فائدة امسحهم وجرب ياخووي ترانني مبتلشش فيه خراب بالقيم مود Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now