Jump to content

setTimer


Recommended Posts

جرب,

addEventHandler("onClientPlayerJoin",root, 
function() 
    text = "The Player ["..getPlayerName(source).."] Join The Server" 
    addEventHandler("onClientRender", root,Render) 
    if isTimer(theHell) then killTimer(theHell) end 
    theHell = setTimer(removeEventHandler, 10000, 1,'onClientRender',root,Render) 
end) 
  
  
function Render() 
    dxDrawText(text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
end 
Link to comment
جرب,

addEventHandler("onClientPlayerJoin",root, 
function() 
    text = "The Player ["..getPlayerName(source).."] Join The Server" 
    addEventHandler("onClientRender", root,Render) 
    if isTimer(theHell) then killTimer(theHell) end 
    theHell = setTimer(removeEventHandler, 10000, 1,'onClientRender',root,Render) 
end) 
  
  
function Render() 
    dxDrawText(text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
end 

ابي الكل يشوفه

Link to comment

جرب,

كلنت,

addEvent('Join',true) 
addEventHandler("Join",root, 
function(Name) 
    Text = "The Player ["..Name.."] Join The Server" 
    if isTimer(Timer) then killTimer(Timer) end 
    Timer = setTimer(function() Text = "" end, 10000, 1) 
    end 
) 
  
addEventHandler("onClientRender", root, 
function () 
    dxDrawText(Text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
    end 
) 

سيرفر,

addEventHandler('onPlayerJoin',root, 
function() 
    local Name = getPlayerName(source) 
    triggerClientEvent(root,'Join',root,Name) 
    end 
) 
Link to comment
جرب,

كلنت,

addEvent('Join',true) 
addEventHandler("Join",root, 
function(Name) 
    Text = "The Player ["..Name.."] Join The Server" 
    if isTimer(Timer) then killTimer(Timer) end 
    Timer = setTimer(function() Text = "" end, 10000, 1) 
    end 
) 
  
addEventHandler("onClientRender", root, 
function () 
    dxDrawText(Text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
    end 
) 

سيرفر,

addEventHandler('onPlayerJoin',root, 
function() 
    local Name = getPlayerName(source) 
    triggerClientEvent(root,'Join',root,Name) 
    end 
) 

كفو ذا بست ماقصرت

الله يعطيك العافية

Link to comment
جرب كلينت فقط
addEventHandler("onClientPlayerJoin", root, 
function() 
    text = "The Player ["..getPlayerName(source).."] Join The Server" 
    if isTimer(theHell) then killTimer(theHell) end 
    theHell = setTimer(function() text = "" end, 10000, 1) 
end) 
  
addEventHandler("onClientRender", root, 
function() 
    dxDrawText(text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
end) 

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

برب انتحار

Link to comment
جرب كلينت فقط

addEventHandler("onClientPlayerJoin", root, 
function() 
    text = "The Player ["..getPlayerName(source).."] Join The Server" 
    if isTimer(theHell) then killTimer(theHell) end 
    theHell = setTimer(function() text = "" end, 10000, 1) 
end) 
  
addEventHandler("onClientRender", root, 
function() 
    dxDrawText(text, 11, 228, 335, 265, tocolor(252, 84, 1, 255), 1.50, "default-bold", "left", "top", false, false, true, false, false) 
end) 

؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟

برب انتحار

بالتوفيق .. الله يغفر لك ذنوبك .. :mrgreen:

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...