AliAlanzi Posted July 31, 2017 Posted July 31, 2017 الحين انا عندي زر لمن يموت لاعب يطلع الزر ابيه ما يقدر يدعسه الا بعد وقت محدد بس ما ابي الزر مخفي ابيه يكون موجود بس ما يقدر يدعسة و ابي مثلا فوق الزر يطلع وقت يبدا من 60 و ينزل الى 0
Mhmd.z Posted July 31, 2017 Posted July 31, 2017 guiSetEnabled--تعطل الزر setTimer--تايمر خليه 60 ثانيه getTimerDetails--جيب عدد الثوان من التايمر
A7M8D Posted July 31, 2017 Posted July 31, 2017 -- Server "onPlayerWated" triggerClientEvent -- Client guiSetVisible -- Btn guiSetEnabled -- Btn False setTimer getTimerDetails
coNolel Posted July 31, 2017 Posted July 31, 2017 38 minutes ago, #MR.NaiF said: -- Server "onPlayerWated" triggerClientEvent -- Client guiSetVisible -- Btn guiSetEnabled -- Btn False setTimer getTimerDetails بس ما ابي الزر مخفي ابيه يكون موجود بس ما يقدر يدعسة guiSetVisible ما لها فايدة 40 minutes ago, Mhmd.z said: guiSetEnabled--تعطل الزر setTimer--تايمر خليه 60 ثانيه getTimerDetails--جيب عدد الثوان من التايمر بيجيب بـالميلي سكند اقسم على 100 اظن ض
AliAlanzi Posted July 31, 2017 Author Posted July 31, 2017 لا قصدي مثلا انا اختار مكان الوقت مثلا نص الشاشة ما ابيه بالشات 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) 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 ChangeMyButtonEnabled ( ) setTimer function () if ( guiGetEnabled ( bRespawn ) == true ) then guiSetEnabled ( bRespawn, false ) else guiSetEnabled ( bRespawn, true ) end,60000,1) end كذا صح الحين؟
coNolel Posted July 31, 2017 Posted July 31, 2017 28 minutes ago, coNolel said: بس ما ابي الزر مخفي ابيه يكون موجود بس ما يقدر يدعسة guiSetVisible ما لها فايدة بيجيب بـالميلي سكند اقسم على 100 اظن ض 1000* مقدر أعدل لا حول
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