Rakan#
Members-
Posts
451 -
Joined
-
Last visited
-
Days Won
5
Everything posted by Rakan#
-
- ( Server Danger For Zombie ) - | سيرفر خطر للزومبي
Rakan# replied to Doffy's topic in Arabic / العربية
تصرفني تقول سو مهمة اقولك وش هي تنحاش او تقول اسال ريان لو اني مكانك وعارف وش اسوي خلصت المودات باول يوم ماقصدي اتفاخر بس انا خطير اعترف -
المشكله ذي غالبا انك مركب ملف او معدل على احد ملفات اللعبه او ناقص ملف
-
يعني لما طلبتني شغله كانت للسيرفر المقهور منه هو وتقول للسيرفر حقي نايس
-
- ( Server Danger For Zombie ) - | سيرفر خطر للزومبي
Rakan# replied to Doffy's topic in Arabic / العربية
المود الوحيد اللي انا سويت لهم المهمة -
useful function >> isMouseInPosition
-
فكرتك جميله جدًا .. بس عشان يقبل الحظر لازم يكون متفق عليه من 3 مسؤولين بالموقع او تجيب انت مسؤولين + اللي يطلب حظر يكون حاط السبب + اسم الشخص + حسابه + سيرياله + يمدي اي شخص يشوف الحظر ويقدر يوافق او لا طبعا لو ضفت انت حظر بيكون الجميع موافقين ويقدر شخص يدخل ويلغي الموافقه لو لغى الموافقه يصير يقدر الشخص المحظور يخش السيرفر فكره رائعه .. بالتوفيق
-
+ القسم غلط . روح قسم البرمجة + مقدر اساعدك بتقليد لسيرفر انا عضو فيه
-
wReportMain = guiCreateStaticImage(9, 98, 371, 98, "bug", false))
-
- ( Server Danger For Zombie ) - | سيرفر خطر للزومبي
Rakan# replied to Doffy's topic in Arabic / العربية
استضافتك مشكلتها المساحه لان السيرفر يسوي نسخه تلقائي لبعض المودات وتعتبر المساحه قليله جدا عدى ذلك كويس .. بتوفيق -
موفقين
-
اسف لاتهتم
-
هههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههههه
-
استعمل dxlib
-
انا مو فاهم قصدك ولا ساعدتك
-
تسلم ماسويت شي يقلبي انا ماسويت لك الا عشانك محترم وتستاهل الخط سطر22+26+30 تلقى 1.50 عدلها
-
يب يب نسيت اعدله 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*(0.408491947), "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*(0.408491947), "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*(0.408491947), "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" then if enabled == true 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 triggerServerEvent("es-system:acceptDeath", getLocalPlayer(), getLocalPlayer(), victimDropItem) showCursor(false) end end end 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)
-
طيب وتفضل ذا @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*(0.408491947), "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*(0.408491947), "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*(0.408491947), "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" then if enabled == true 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 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)
-
تفضل ذا @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*(scrWidth*0.408491947), "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" then if enabled == true 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 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)
-
@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)
-
دقيقه واسويها لك بدون مقابل
-
@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)
-
مشكلة كانت بسيطه @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)
-
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 تفضل جرب
