Jump to content

فراغ في سكور


Recommended Posts

كيف بدي اضيف كلمن

هذا اكواد

FPS

  
exports.scoreboard:addScoreboardColumn("FPS")   
  
  
function onClientResourceStart ( resource ) 
    if ( guiFPSLabel == nil ) then 
        FPSLimit = 255 / FPSLimit 
        FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
        addEventHandler ( "onClientRender", getRootElement (), onClientRender ) 
    end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), onClientResourceStart ) 
  
function onClientRender ( ) 
    if ( getTickCount() < FPSTime ) then 
        FPSCalc = FPSCalc + 1 
    else 
        if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end 
        local FPSCalc = FPSCalc 
        setElementData(player, "FPS", FPSCalc) 
         FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
    end 
end 
  
  

Link to comment

استبدل هذا

exports.scoreboard:addScoreboardColumn("FPS")  

بهذا

exports.scoreboard:scoreboardAddColumn("FPS", root, 70) 

ان كان العرض كبير قلل الرقم الـ 70

ان كان العرض صغير زود الرقم الـ 70

Link to comment
كيف بدي اضيف كلمن

هذا اكواد

FPS

  
exports.scoreboard:addScoreboardColumn("FPS")   
  
  
function onClientResourceStart ( resource ) 
    if ( guiFPSLabel == nil ) then 
        FPSLimit = 255 / FPSLimit 
        FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
        addEventHandler ( "onClientRender", getRootElement (), onClientRender ) 
    end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), onClientResourceStart ) 
  
function onClientRender ( ) 
    if ( getTickCount() < FPSTime ) then 
        FPSCalc = FPSCalc + 1 
    else 
        if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end 
        local FPSCalc = FPSCalc 
        setElementData(player, "FPS", FPSCalc) 
         FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
    end 
end 
  
  

لأني مو فاهمك ذذ getFPSLimit ممكن تفهمني وش الفرق بين كودك وبين الفنكشن ذا

Link to comment
كيف بدي اضيف كلمن

هذا اكواد

FPS

  
exports.scoreboard:addScoreboardColumn("FPS")   
  
  
function onClientResourceStart ( resource ) 
    if ( guiFPSLabel == nil ) then 
        FPSLimit = 255 / FPSLimit 
        FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
        addEventHandler ( "onClientRender", getRootElement (), onClientRender ) 
    end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), onClientResourceStart ) 
  
function onClientRender ( ) 
    if ( getTickCount() < FPSTime ) then 
        FPSCalc = FPSCalc + 1 
    else 
        if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end 
        local FPSCalc = FPSCalc 
        setElementData(player, "FPS", FPSCalc) 
         FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
    end 
end 
  
  

لأني مو فاهمك ذذ getFPSLimit ممكن تفهمني وش الفرق بين كودك وبين الفنكشن ذا

ما ادري :)

Link to comment
استبدل هذا
exports.scoreboard:addScoreboardColumn("FPS")  

بهذا

exports.scoreboard:scoreboardAddColumn("FPS", root, 70) 

ان كان العرض كبير قلل الرقم الـ 70

ان كان العرض صغير زود الرقم الـ 70

تسلم الله يخليك :):):):)

Link to comment
كيف بدي اضيف كلمن

هذا اكواد

FPS

  
exports.scoreboard:addScoreboardColumn("FPS")   
  
  
function onClientResourceStart ( resource ) 
    if ( guiFPSLabel == nil ) then 
        FPSLimit = 255 / FPSLimit 
        FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
        addEventHandler ( "onClientRender", getRootElement (), onClientRender ) 
    end 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), onClientResourceStart ) 
  
function onClientRender ( ) 
    if ( getTickCount() < FPSTime ) then 
        FPSCalc = FPSCalc + 1 
    else 
        if ( FPSCalc > FPSMax ) then FPSLimit = 255 / FPSCalc FPSMax = FPSCalc end 
        local FPSCalc = FPSCalc 
        setElementData(player, "FPS", FPSCalc) 
         FPSCalc = 0 
        FPSTime = getTickCount() + 1000 
    end 
end 
  
  

لأني مو فاهمك ذذ getFPSLimit ممكن تفهمني وش الفرق بين كودك وبين الفنكشن ذا

getFPSLimit هذا يجيب حد اللمت بالسيرفر

اما الكود الي بالموضوع هذا يجيب الفبس الحالي حق اللعبة و اللمت الي تشوفه بالكود هو تسجيل لأعلى فبس اللعبة و صلت له

Link to comment

جرب هذا

exports.scoreboard:scoreboardAddColumn("FPS", root, 70, "FPS", 4) 

أو هذا

exports.scoreboard:scoreboardSetColumnPriority("FPS", 4) 

او هذا

exports.scoreboard:addScoreboardColumn("FPS", root, 4, 70) 

مدري كم بيكون رقم الترتيب بالضبط إذا ما صار الي تبيه جرب تغير الرقم 4 بزيادة او نقصان

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