iMrKaZaNoFa Posted March 11, 2018 Share Posted March 11, 2018 السلام عليكم ورحمة الله وبركاتة لاهنتم يا رجال ابي مود لمين تموت في الحياة الواقعية لازم تنتضر مثلآ 1 دقيقة عشان يفتح لك زر الرسباون ويكتب له فوق زر الرسباون الوقت كم باقي له ويفتح زي حق وناسة لاهنتم الي يعرف يسوية يجيني سكايب [email protected] وله مقابل __________ Link to comment
Ahmed Ly Posted March 14, 2018 Share Posted March 14, 2018 On 3/11/2018 at 19:47, iMrKaZaNoFa said: السلام عليكم ورحمة الله وبركاتة لاهنتم يا رجال ابي مود لمين تموت في الحياة الواقعية لازم تنتضر مثلآ 1 دقيقة عشان يفتح لك زر الرسباون ويكتب له فوق زر الرسباون الوقت كم باقي له ويفتح زي حق وناسة لاهنتم الي يعرف يسوية يجيني سكايب [email protected] وله مقابل __________ انا ماعندي حساب علي سكايب ... عندك حساب فيس بوك او Discord? Link to comment
Ram, Posted March 14, 2018 Share Posted March 14, 2018 (edited) اطرح لي اكواد الملف حق الواستد ملف حق لما اللاعب يموت .. وانا اعدل لك عليه واسوي لك الي تبيه . وأعطيه لك دون مقابل . Edited March 14, 2018 by AbU - W6N 1 1 1 Link to comment
iMrKaZaNoFa Posted March 14, 2018 Author Share Posted March 14, 2018 الله يسعدك يابو وطن على هالمعروف وعلى انك تدعم الاعبين بأبداعك ___________________________________________________ addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) guiSetEnabled ( bRespawn,false ) setTimer ( guiSetEnabled,300000,1,bRespawn,true ) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) bRespawn = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) bRespawn = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) Link to comment
Rakan# Posted March 14, 2018 Share Posted March 14, 2018 @iMrKaZaNoFa م جربته لكن شوف ذا لان مامعي رولي بلاي بس جربه addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) timlab = guiCreateLabel(x,y-50,width*4,height,"60",false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) remaining = getTimerDetails ( RespTime ) setLab = setTimer( function() if isTimer(RespTime) then guiSetText(timlab,math.floor(remaining/1000)) else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) bRespawn = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) bRespawn = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) 1 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 هو كويس لاكن الرقم 60 مايتحرك عدد تنازلي ورقم 60 لمين واحد يسوي رسباون ماتروح الكلمة تضل موجودة Link to comment
Rakan# Posted March 15, 2018 Share Posted March 15, 2018 addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) timlab = guiCreateLabel(x,y-50,width*4,height,"60",false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) remaining = getTimerDetails ( RespTime ) setLab = setTimer( function() if isTimer(RespTime) then guiSetText(timlab,tostring(math.floor(remaining/1000))) else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) @iMrKaZaNoFa تفضل جرب 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 كويس بس مشكلة يضل على عدد 60 مثلآ مايجي زي كذا 60 يضل على الرقم ذا __ بس انت صلحت مشكلة لمين اسوي رسباون يختفي كويس بس الرقم حق 60 مايتغير ينزل رقم تنازلي مثل 60 59 58 57 56 زي كذا Link to comment
Rakan# Posted March 15, 2018 Share Posted March 15, 2018 (edited) مشكلة كانت بسيطه @iMrKaZaNoFa تفضل جرب addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) timlab = guiCreateLabel(x,y-50,width*4,height,"60",false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) setLab = setTimer( function() if isTimer(RespTime) then remaining = getTimerDetails ( RespTime ) guiSetText(timlab,math.floor(remaining/1000)) else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) Edited March 15, 2018 by Rakan# 1 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 الله يسعدك المود جدآ ممتاز وربي اهنيك ماني عارف كيف اشكرك ___ اسف لو تعبتك معي بس يليت لو مثلآ تكتب جنب الرقم كذا الوقت المتبقي : 60 وخليه بالوسط بكون جدآآآآ شاكر لك والله Link to comment
Rakan# Posted March 15, 2018 Share Posted March 15, 2018 @iMrKaZaNoFa جرب ذا يجيك بالنص او لا مو متاكد addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) timlab = guiCreateLabel((scrWidth - 117) / 2, (scrHeight - 54) / 2, 117, 54, "الوقت المتبقي : 60", false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) setLab = setTimer( function() if isTimer(RespTime) then remaining = getTimerDetails ( RespTime ) guiSetText(timlab,math.floor(remaining/1000).." الوقت المتبقي : ") else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 يطلع لي الكلام بالوسط ومادري ويش من لغة Link to comment
Ram, Posted March 15, 2018 Share Posted March 15, 2018 6 minutes ago, iMrKaZaNoFa said: يطلع لي الكلام بالوسط ومادري ويش من لغة addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) timlab = guiCreateLabel((scrWidth - 117) / 2, (scrHeight - 54) / 2, 117, 54, "Respawn after : 60", false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) setLab = setTimer( function() if isTimer(RespTime) then remaining = getTimerDetails ( RespTime ) guiSetText(timlab," Respawn after : "..math.floor(remaining/1000).."") else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) جيت ولقيته سواها لك .. جرب كذا 2 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 ماتقدر تخلي الكلام فوق زر رسباون لاهنت ؟ فوقة بالضبط Link to comment
Ram, Posted March 15, 2018 Share Posted March 15, 2018 addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) local width, height = 201,54 local scrWidth, scrHeight = guiGetScreenSize() local x = scrWidth/2 - (width/2) local y = scrHeight/1.1 - (height/2) bRespawn = guiCreateButton(x, y, width, height,"Respawn",false) guiSetEnabled ( bRespawn,false ) RespTime = setTimer ( guiSetEnabled,60*1000,1,bRespawn,true ) setLab = setTimer( function() if isTimer(RespTime) then remaining = getTimerDetails ( RespTime ) guiSetText(bRespawn," Respawn after : "..math.floor(remaining/1000).."") setTimer(setssaz,60000,1) else killTimer(setLab) end end,1000,62) guiSetFont(bRespawn,"sa-header") addEventHandler("onClientGUIClick", bRespawn, function () if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end function setssaz ( ) guiSetText(bRespawn,"Respawn") end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() if bRespawn then destroyElement(bRespawn) destroyElement(timlab) bRespawn = nil timlab = nil showCursor(false) guiSetInputEnabled(false) end end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) 1 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 يا رجال ويش الابداع ذا والله مشكورين الاثنين AbU - W6N + Rakan# ____ والله ماقصرتو صراحة وساعدتوني كثيرررررررررررررررررر اسف طلباتي كثيرة بس توني مبتدئ وتحمست _________ اقدر اغير شكل ذا واخلية مربع ولون المربع رصاصي ولون الكلام ابيض مستعد ادفع فلوس للي يسويها لاني عارف تتعب Link to comment
Ram, Posted March 15, 2018 Share Posted March 15, 2018 5 minutes ago, iMrKaZaNoFa said: يا رجال ويش الابداع ذا والله مشكورين الاثنين AbU - W6N + Rakan# ____ والله ماقصرتو صراحة وساعدتوني كثيرررررررررررررررررر اسف طلباتي كثيرة بس توني مبتدئ وتحمست _________ اقدر اغير شكل ذا واخلية مربع ولون المربع رصاصي ولون الكلام ابيض مستعد ادفع فلوس للي يسويها لاني عارف تتعب يب تقدر .. staticimage + label 1 Link to comment
Rakan# Posted March 15, 2018 Share Posted March 15, 2018 دقيقه واسويها لك بدون مقابل 1 Link to comment
Ram, Posted March 15, 2018 Share Posted March 15, 2018 6 minutes ago, iMrKaZaNoFa said: اسف طلباتي كثيرة بس توني مبتدئ وتحمست حياك الله ب أي وقت 1 Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 staticimage + label حسستني اني فهمت ههههه والله مافهمت شي Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 هههههههههههههه الله يسعدك والله لو اني فاهم ماكان تعبت الرجال قاعد احاول اتعلم Link to comment
Ram, Posted March 15, 2018 Share Posted March 15, 2018 10 minutes ago, iMrKaZaNoFa said: staticimage + label حسستني اني فهمت ههههه والله مافهمت شي المقصود إنك تروح ع مود الجيو وتسوي create > image اول شيء, لازم يكون عندك صوره فاضيه لونها رصاصي او اللون الي تبيه وتختار الصوره ,وتحطها بعدين تضغط كلك يمين ع الصوره وتسوي create>label وتكتب عليه Respawn وتغير إسم الزر والصوره ولازمك تستخدم "onClientGUIClick" guiSetVisible Link to comment
iMrKaZaNoFa Posted March 15, 2018 Author Share Posted March 15, 2018 للأسف مافهمت 23 minutes ago, Rakan# said: يقه واسويها لك بدون مقابل اذا فيه تعب عليك امانة تعال واتس بعطيك حق شغلك والله Link to comment
Rakan# Posted March 15, 2018 Share Posted March 15, 2018 (edited) @iMrKaZaNoFa اعذرني ع التاخير كنت بمشوار جرب ذا لا الله يعافيك م احتاج مقابل msg = "Respawn After " timer = 60 enabled = false local scrWidth, scrHeight = guiGetScreenSize() function dxRe() if isTimer(RespTime) then remaining = getTimerDetails ( RespTime ) timer = math.floor(remaining/1000) msg = "Respawn After " else msg = "Respawn " timer = "" enabled = true end dxDrawLine((scrWidth*0.408491947) - 1, (scrHeight*0.73828125) - 1, (scrWidth*0.408491947) - 1, (scrHeight*0.811197917), tocolor(255, 0, 0, 255), 1, false) dxDrawLine((scrWidth*0.527818448), (scrHeight*0.73828125) - 1, (scrWidth*0.408491947) - 1, (scrHeight*0.73828125) - 1, tocolor(255, 0, 0, 255), 1, false) dxDrawLine((scrWidth*0.408491947) - 1, (scrHeight*0.811197917), (scrWidth*0.527818448), (scrHeight*0.811197917), tocolor(255, 0, 0, 255), 1, false) dxDrawLine((scrWidth*0.527818448), (scrHeight*0.811197917), (scrWidth*0.527818448), (scrHeight*0.73828125) - 1, tocolor(255, 0, 0, 255), 1, false) if not isMouseInPosition((scrWidth*0.408491947), (scrHeight*0.73828125), scrWidth*0.119326501, (scrHeight*0.0729166667)) then dxDrawRectangle((scrWidth*0.408491947), (scrHeight*0.73828125), scrWidth*0.119326501, (scrHeight*0.0729166667), tocolor(87, 87, 87, (enabled == false and 165 or 200)), false) dxDrawText(msg..timer, (scrWidth*0.408491947), (scrHeight*0.740885417), (scrWidth*0.526354319), (scrHeight*0.805989583), tocolor(254, 254, 254, (enabled == false and 165 or 200)), 1.50, "default-bold", "center", "center", false, false, false, false, false) else if enabled then dxDrawRectangle((scrWidth*0.408491947), (scrHeight*0.73828125), scrWidth*0.119326501, (scrHeight*0.0729166667), tocolor(87, 87, 87, 255), false) dxDrawText(msg..timer, (scrWidth*0.408491947), (scrHeight*0.740885417), (scrWidth*0.526354319), (scrHeight*0.805989583), tocolor(254, 254, 254, 255), 1.50, "default-bold", "center", "center", false, false, false, false, false) else dxDrawRectangle((scrWidth*0.408491947), (scrHeight*0.73828125), scrWidth*0.119326501, (scrHeight*0.0729166667), tocolor(87, 87, 87, (enabled == false and 165 or 200)), false) dxDrawText(msg..timer, (scrWidth*0.408491947), (scrHeight*0.740885417), (scrWidth*0.526354319), (scrHeight*0.805989583), tocolor(254, 254, 254, (enabled == false and 165 or 200)), 1.50, "default-bold", "center", "center", false, false, false, false, false) end end end local sX,sY = guiGetScreenSize() function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = sX,sY local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end addEvent("fadeCameraOnSpawn", true) addEventHandler("fadeCameraOnSpawn", getLocalPlayer(), function() start = getTickCount() end ) --local bRespawn = nil function showRespawnButton(victimDropItem) showCursor(true) enabled = false addEventHandler("onClientRender",root,dxRe) RespTime = setTimer( function() enabled = true end,60*1000,1) addEventHandler("onClientClick",root, function(b,s) if b == "left" and s == "down" and enabled then if isMouseInPosition((scrWidth*0.408491947), (scrHeight*0.73828125), scrWidth*0.119326501, (scrHeight*0.0729166667)) then removeEventHandler("onClientRender",root,dxRe) showCursor(false) guiSetInputEnabled(false) enabled = false end end triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end, false) end function setssaz ( ) --guiSetText(bRespawn,"Respawn") end addEvent("es-system:showRespawnButton", true) addEventHandler("es-system:showRespawnButton", getLocalPlayer(),showRespawnButton) function closeRespawnButton() removeEventHandler("onClientRender",root,dxRe) showCursor(false) guiSetInputEnabled(false) enabled = false end addEvent("es-system:closeRespawnButton", true) addEventHandler("es-system:closeRespawnButton", getLocalPlayer(),closeRespawnButton) Edited March 15, 2018 by Rakan# 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