xNKM51 Posted August 8, 2016 Share Posted August 8, 2016 ابي اكود تركبونها علي الوحه عجزت عنها اركب الوحه بس المهم تركبو اظهار حساب 2 تركبو حفظ حساب الثالث الكمره المتحركه هذول اكود عطاني ذا روك او ناصر اقول بس عجبني اناديه ذا روك هذا اوك كود smoothMoveCamera xmlCreateFile or executeSQLQuery or dbConnect -- اتمناء تسوي لي هذول الاكواد وهذي الوحه addEvent("onRequestIncreaseAttempts",true) addEvent("onRequestDisplayPanel",true) function loginPanel() -- Check if autologin is enabled - If yes, then log the player in, else create and show the userpanel local xmlFile = xmlLoadFile(xmlFileName) if xmlFile then status = xmlNodeGetAttribute(xmlFile,"autologin") if (status == "true") then local username = tostring(xmlNodeGetAttribute(xmlFile,"username")) local password = tostring(xmlNodeGetAttribute(xmlFile,"password")) if not (username == "") and not (password == "") then setTimer(triggerServerEvent, 1000, 1, "onRequestAutologin",player,username,password) end else if blackLoginScreen == true then fadeCamera(true, 6, 0, 0, 0) setCameraMatrix(1530.48120 ,-1744.43018 ,14.04688+10 ,1529.65100 ,-1644.64233 ,13.38281) end mainWindow = guiCreateWindow(screenWidth/2-mainWidth/2,screenHeight/2-mainHeight/2,mainWidth,mainHeight,"",false) mInfo = guiCreateMemo(0,0,0,0,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) guiWindowSetSizable(mainWindow,false) guiSetAlpha(mainWindow, 0.60) editUsername = guiCreateEdit(274, 137, 249, 47,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(274, 222, 249, 47,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(321, 99, 158, 38,"Username:",false,mainWindow) guiLabelSetColor(lblUsername,39, 249, 4) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(324, 184, 158, 38,"Password:",false,mainWindow) guiLabelSetColor(lblPassword,248, 33, 4) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) guiSetFont(lblPassword,"default-bold-small") btnLogin = guiCreateButton(42, 393, 309, 58,"Login",false,mainWindow) guiSetFont(btnLogin,"sa-header") btnToggleRegister = guiCreateButton(432, 393, 309, 57,"Register",false,mainWindow) guiSetFont(btnToggleRegister,"sa-header") ana = guiCreateLabel(209, 19, 387, 80, "Login--SPR",false,mainWindow) guiSetFont(ana, "sa-gothic") guiLabelSetColor(ana, 235, 249, 5) registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"Registration",false) guiWindowSetSizable(registerWindow,false) editRegistrationUsername = guiCreateEdit(286, 139, 260, 39,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(286, 195, 260, 39,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(286, 251, 260, 39,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRegister = guiCreateLabel(207, 26, 391, 97,"Register",false,registerWindow) guiLabelSetColor(lblRegister,255, 0, 0) guiLabelSetVerticalAlign(lblRegister,"center") guiLabelSetHorizontalAlign(lblRegister,"center",false) guiSetFont(lblRegister,"sa-gothic") lblRUsername = guiCreateLabel(296, 123, 242, 17,"Username:",false,registerWindow) guiLabelSetColor(lblRUsername,255, 0, 0) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(296, 178, 242, 17,"Password:",false,registerWindow) guiLabelSetColor(lblRPassword,255, 0, 0) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(296, 234, 242, 17,"Repeat password:",false,registerWindow) guiLabelSetColor(lblRepeatPassword,255, 0, 0) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(261, 443, 305, 56,"Cancel",false,registerWindow) guiSetFont(btnCancel,"sa-header") guiLabelSetColor(btnCancel,255, 0, 0) btnConfirmRegistration = guiCreateButton(227, 371, 386, 55,"Confirm & register!",false,registerWindow) guiSetFont(btnConfirmRegistration,"sa-header") guiLabelSetColor(btnConfirmRegistration,255, 0, 0) هذي الوحه زي ما شايف ام الكود استعاده حسابي عن قريب اسوي له لوحه Link to comment
xNKM51 Posted August 8, 2016 Author Share Posted August 8, 2016 هذا كود حق المره معليش ما جاء local sm = {} sm.moov = 0 sm.object1,sm.object2 = nil,nil local function removeCamHandler() if(sm.moov == 1)then sm.moov = 0 end end local function camRender() if (sm.moov == 1) then local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2) setCameraMatrix(x1,y1,z1,x2,y2,z2) end end addEventHandler("onClientPreRender",root,camRender) function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) if(sm.moov == 1)then return false end sm.object1 = createObject(1337,x1,y1,z1) sm.object2 = createObject(1337,x1t,y1t,z1t) setElementAlpha(sm.object1,0) setElementAlpha(sm.object2,0) setObjectScale(sm.object1,0.01) setObjectScale(sm.object2,0.01) moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") sm.moov = 1 setTimer(removeCamHandler,time,1) setTimer(destroyElement,time,1,sm.object1) setTimer(destroyElement,time,1,sm.object2) return true end Link to comment
xNKM51 Posted August 8, 2016 Author Share Posted August 8, 2016 صراحه الكود حولت اكثير من خمسين مره مقدرت عليها 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