Jump to content

.: تم الأفادة :.


Recommended Posts

Label = guiCreateLabel(200,200,200,40,"Timer : ",false) 
  
guiSetVisible(Label,false) 
  
local num = 5 
function Numper() 
    guiSetText(Label,"Timer : "..num) 
    num = num - 1 
    if num <= -2 then 
        guiSetVisible(Label,false) 
        killTimer(NumberTimer) 
        num = 5 
    end 
end 
  
addEventHandler("onClientGUIClick",guiRoot,function() 
    if source == اسم الزر then 
        guiSetVisible(Label,true) 
        NumberTimer = setTimer(Numper,1000,0) 
    end 
end) 

Link to comment

انا ابيه لما يدخل ماركر ييصير عد تنازلي

جيب الماركر

خلاص ضبط كودك مشكور

بس ليه مايوقف قتل

Label = guiCreateLabel(200,200,200,40,"Timer : ",false) 
  
guiSetVisible(Label,true) 
  
local num = 5 
function Numper() 
    guiSetText(Label,"Timer : "..num) 
    num = num - 1 
setTimer(kill,5000,1) 
    if num == 0 then 
        guiSetVisible(Label,false) 
        killTimer(NumberTimer) 
        num = 5 
    end 
end 
  
function kill() 
        triggerServerEvent("Kill", getLocalPlayer()) 
end 
  
guiSetVisible(endkey,true) 
    endkey = guiCreateButton(0.1,0.4,0.1,0.15,"End",true) 
  
addEventHandler("onClientGUIClick",root,function() 
    if source == endkey then 
        guiSetVisible(Label,true) 
        NumberTimer = setTimer(Numper,1000,0) 
    end 
end) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...