Dr.Xen
Members-
Posts
412 -
Joined
-
Last visited
Everything posted by Dr.Xen
-
آهـآ فقهمت ..# على العموم مشكور !
-
ابيه يسوي دي اكس فقط والباقية انا ادبر .. ض2
-
وعليكم السلام ورحمة الله وبركاته ... اخوي ممكن كذآ :"
-
ذا كلنت القيم مود ... بس مدري فين احط الكود ض1 function anim(tag,animTime,de1,de2,de3,hasta1,hasta2,hasta3,typeAnim) local now = getTickCount() local endTime = tag + animTime local elapsedTime = now - tag local duration = endTime - tag local progress = elapsedTime / duration local a, b, c = interpolateBetween ( de1,de2,de3,hasta1,hasta2,hasta3, progress, typeAnim) return a, b, c end fileDelete("intro_c.lua") local sx, sy = guiGetScreenSize() alpha = 250 MP = "files/1.png" MX = sx MY = sy function adjIntro(adj) _, times = getTimerDetails(IntroTimer) if adj == "M1" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else IntroTimer = setTimer(adjIntro, 50, 26, "M2") end end, 50, 26) end elseif adj == "M2" then if (alpha < 250) and (alpha >= 0) then alpha = alpha + 10 end MX = (MX/0.95)-5 MY = (MY/0.95) MP = "files/2.png" if times == 1 then setTimer(function() MP = "files/3.png" setTimer(function() IntroTimer = setTimer(adjIntro, 50, 26, "M3") end, 3500, 1) end, 4000, 1) end elseif adj == "M3" then MX = (MX*0.95)+5 MY = (MY*0.95) if times == 1 then MP = "files/4.png" MX = (MX/0.95)-5 MY = (MY/0.95) 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 setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) smoothMoveCamera(1791.33056,926.23474,42.28994,1791.33056,926.23474,42.28994,1788.45043,1044.94250,28.5875396,1788.45043,1044.94250,28.5875396,3000) showCursor(true) guiSetVisible(GUIEditor.window[1], true) destroyElement(IntroSong) end end, 50, 26) end, 3500, 1) end end function drawIntro() dxDrawImage(sx/2-(MX/2), sy/2-(MY/2), MX, MY, MP, 0, 0, 0, tocolor(255, 255, 255, alpha)) end function main() fadeCamera(false, 0) showChat(false) IntroSong = playSound("files/Intro.mp3") showPlayerHudComponent("all", false) start = getTickCount() addEventHandler("onClientRender",getRootElement(),intro) setTimer ( function() removeEventHandler("onClientRender",getRootElement(),intro) IntroTimer = setTimer(adjIntro, 50, 26, "M1") addEventHandler("onClientRender", root, drawIntro) triggerEvent("onFinishIntro",getRootElement()) setCameraMatrix(-1475.5, 831.18, 65.5, -1487.5, 800.18, 65.5) end, 5000, 1 ) end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),main) GUIEditor = { tab = {}, tabpanel = {}, edit = {}, button = {}, window = {}, label = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(sx/2-(601/2), sy/2-(344/2), 601, 344, "", false) guiSetVisible(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetInputMode("no_binds_when_editing") GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 21, 579, 313, false, GUIEditor.window[1]) -----------------------------|Login|----------------------------- GUIEditor.tab[1] = guiCreateTab("Login", GUIEditor.tabpanel[1]) local MainText = xmlNodeGetValue(xmlLoadFile("Main.xml")) or "" GUIEditor.memo[1] = guiCreateMemo(7, 8, 271, 270, MainText, false, GUIEditor.tab[1]) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[1] = guiCreateLabel(395, 28, 65, 18, "UserName", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.edit[1] = guiCreateEdit(322, 50, 210, 30, "", false, GUIEditor.tab[1]) GUIEditor.label[2] = guiCreateLabel(395, 107, 65, 18, "Password", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(322, 130, 210, 30, "", false, GUIEditor.tab[1]) guiEditSetMasked(GUIEditor.edit[2], true) GUIEditor.button[1] = guiCreateButton(313, 207, 235, 34, "Login", false, GUIEditor.tab[1]) -----------------------------|Register|----------------------------- GUIEditor.tab[2] = guiCreateTab("Register", GUIEditor.tabpanel[1]) GUIEditor.label[3] = guiCreateLabel(273, 26, 60, 19, "UserName", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.edit[3] = guiCreateEdit(198, 49, 212, 27, "", false, GUIEditor.tab[2]) GUIEditor.label[4] = guiCreateLabel(273, 90, 60, 19, "Password", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[4], "default-bold-small") GUIEditor.edit[4] = guiCreateEdit(198, 119, 212, 27, "", false, GUIEditor.tab[2]) GUIEditor.label[5] = guiCreateLabel(256, 162, 107, 16, "Confirm Password", false, GUIEditor.tab[2]) guiSetFont(GUIEditor.label[5], "default-bold-small") GUIEditor.edit[5] = guiCreateEdit(198, 188, 212, 27, "", false, GUIEditor.tab[2]) GUIEditor.button[2] = guiCreateButton(153, 233, 312, 36, "Register", false, GUIEditor.tab[2]) -----------------------------|Rules|----------------------------- GUIEditor.tab[3] = guiCreateTab("Rules", GUIEditor.tabpanel[1]) local RulesText = xmlNodeGetValue(xmlLoadFile("Rules.xml")) or "" GUIEditor.memo[2] = guiCreateMemo(10, 8, 559, 271, RulesText, false, GUIEditor.tab[3]) guiMemoSetReadOnly(GUIEditor.memo[2], true) addEventHandler("onClientGUIClick", root, function() if source == GUIEditor.button[1] then local userName = guiGetText(GUIEditor.edit[1]) local passWord = guiGetText(GUIEditor.edit[2]) if userName ~= "" and passWord ~= "" then triggerServerEvent("Login-Register", localPlayer, "Login", userName, passWord) guiSetEnabled(GUIEditor.button[1], false) setTimer(function() guiSetEnabled(GUIEditor.button[1], true) end, 3000, 1) end elseif source == GUIEditor.button[2] then local userName = guiGetText(GUIEditor.edit[3]) local passWord1 = guiGetText(GUIEditor.edit[4]) local passWord2 = guiGetText(GUIEditor.edit[5]) if userName ~= "" and passWord1 ~= "" and passWord2 ~= "" then if #passWord1 < 4 then outputChatBox("The Password should be at least 4 characters long.", 255, 100, 0) elseif passWord1 ~= passWord2 then outputChatBox("The password does not match.", 255, 0, 0) else guiSetEnabled(GUIEditor.button[2], false) setTimer(function() guiSetEnabled(GUIEditor.button[2], true) end, 3000, 1) triggerServerEvent("Login-Register", localPlayer, "Register", userName, passWord1) end end end end) addEvent("onLoginSuccess", true) addEventHandler("onLoginSuccess", root, function() guiSetVisible(GUIEditor.window[1], false) showCursor(false) local ped = createPed ( 0,1092.4000244141,-797.20001220703,107.40000152588, 190) setPedAnimation( ped, "ped", "WALK_civi") local cam = setCameraMatrix ( 1091.4682617188, -789.76489257813, 106.63426208496, 1104.0025634766, -888.97625732422, 106.63426208496 ) setElementDimension( localPlayer, 20 ) setElementDimension( ped, 20 ) setTimer (function () setPedAnimation(ped,false) end, 6500, 1) setTimer (function () skinCount = 0 sPed = createPed(100, -2816.92432,1148.40100 ,19) addEventHandler("onClientPedDamage",sPed,cancelEvent) sRight() bindKey("arrow_l", "down", sLeft) bindKey("arrow_r", "down", sRight) bindKey("enter", "down", EnterSpawn) addEventHandler("onClientPreRender", root, drawTeamName) destroyElement( ped ) setElementDimension( localPlayer, 0 ) setTime( 12, 0 ) end, 7000, 1) end)
-
التحديث#1# Panel Control Account ||=|| مود التحكم بالحساب #
Dr.Xen replied to #=|>[A]sMr,\~>'s topic in المساهمات
وعليكم السلام ،، بداية موفقةة .. بس ودي اعرف وش اكتب علشان تفتح لي اللوحة .. وآصل بدون فوآصل ولا نقط ض1 -
كذآ يصير؟ setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) smoothMoveCamera(1791.33056,926.23474,42.28994,1791.33056,926.23474,42.28994,1788.45043,1044.94250,28.5875396,1788.45043,1044.94250,28.5875396,3000) showCursor(true) guiSetVisible(GUIEditor.window[1], true) destroyElement(IntroSong) end end, 50, 26) end, 3500, 1) end end end
-
كذآ يصير؟ setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) smoothMoveCamera(1791.33056,926.23474,42.28994,1791.33056,926.23474,42.28994,1788.45043,1044.94250,28.5875396,1788.45043,1044.94250,28.5875396,3000) showCursor(true) guiSetVisible(GUIEditor.window[1], true) destroyElement(IntroSong) end end, 50, 26) end, 3500, 1) end end end
-
تآبل مافهمت ، لا مو هآذي ،، ابيه الكاميرآ تروح من مكان إلى مكان آخر
-
السلام عليكم ورحمة الله وبركاته ،، كيف حالكم ،، عساكم طيبين ابي منكم خدمةة عندي بالقيم عند انتهاء من الإنتروا تبدأ تشتغل لوحة تسجيل ووراها في مكان محدد ابي اخلي الكاميرآ تمشي setTimer(function() setTimer(function() if (alpha <= 250) and not (alpha <= 0) then alpha = alpha - 10 else removeEventHandler("onClientRender", root, drawIntro) fadeCamera(true, 6, 0, 0, 0) setCameraMatrix( -1450.8592529297, 687.60217285156, 51.461585998535, -1357.0673828125, 722.2763671875, 50.574169158936) showCursor(true) guiSetVisible(GUIEditor.window[1], true) destroyElement(IntroSong) end end, 50, 26) end, 3500, 1) end end end وشكرآ لكم
-
اقتراح رائع ،، اتمنى تسونه..
-
addEventHandler ( "onPlayerJoin", getRootElement(), onJoin) string getPlayerSerial ( player thePlayer ) string getPlayerName ( player thePlayer ) end end addCommandHandler("richplayers", listPlayersWithMoreMoneyThan) هريسسة لأكن مااااعرف في البرمجة !!..
-
السلام عليكم ورحمة الله وبركاته كل عام وانتم بخير عساكم طيبين ،، الزبدة : ممكن كود أي واحد يدخل السيرفر يضيف اسمه + سرياله باللوحة توضيح : وشكرآ!
-
مدري بس لقيت الكود انا حافظه بالملف شكله ناقصص