Ant!christ

Anyone can help me for this Scoreboard with flag

Recommended Posts

2 hours ago, arciCZ said:

Send ther source code. If we dont have source then we can edit anything.

as i said i lost

if they know this is nais too and lost toooo..ROGWL7.png

Edited by Ant!christ

Share this post


Link to post
-- server-side

function showcountry()
    local flag = exports.admin:getPlayerCountry ( source )
        if flag then
        setElementData(source,"Country",":admin/client/images/flags/"..flag..".png")
        else
        flag = "N/A"
       
        end
    end
    addEventHandler("onPlayerJoin",getRootElement(),showcountry)

Add this on scoreboard client-side

				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

  • Like 1

Share this post


Link to post
9 hours ago, TorNix~|nR said:

-- server-side

function showcountry()
    local flag = exports.admin:getPlayerCountry ( source )
        if flag then
        setElementData(source,"Country",":admin/client/images/flags/"..flag..".png")
        else
        flag = "N/A"
       
        end
    end
    addEventHandler("onPlayerJoin",getRootElement(),showcountry)

Add this on scoreboard client-side


				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

didn't open can u edit for me if u can : D 

  • Sad 1

Share this post


Link to post
On 12.11.2017 at 17:58, TorNix~|nR said:

What do you mean with didn't open?

i dont know what i do

 

Just now, Ant!christ said:

i dont know what i do

 

so I ask you to help me

  • Confused 1

Share this post


Link to post
12 hours ago, Ant!christ said:

i dont know what i do

 

so I ask you to help me

He literally said what you have to do :?

Add the first code snippet to a server lua file and the 2nd one to scoreboard's client-side file.

  • Haha 1

Share this post


Link to post
On 10/11/2017 at 22:53, TorNix~|nR said:

-- server-side

function showcountry()
    local flag = exports.admin:getPlayerCountry ( source )
        if flag then
        setElementData(source,"Country",":admin/client/images/flags/"..flag..".png")
        else
        flag = "N/A"
       
        end
    end
    addEventHandler("onPlayerJoin",getRootElement(),showcountry)

Add this on scoreboard client-side


				elseif column.name == "Country" then
                dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI )

tell me if there is a problem.

Create a server-side scritp, then add the Serve-Side

then go to 'scoreboard' resource, then open dxscoreboard_client

after that add the Client-Side on line 724 before this code:

dxDrawImage ( topX+theX, y, itemWidth, itemHeight, content.src, content.rot, content.rotOffX, content.rotOffY, content.color, drawOverGUI )
end

If you got a problem, tell me.

Edited by TorNix~|nR
A little mistake.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.