Jump to content

Help Scoreboard Flags Country's


MrXz

Recommended Posts

Please, could help me find a script or a resouce which can take the flag in the scoreboard of each country (show_country Resouce).

They are would greatly appreciate.

AD: Sorry for my Bad English

Edited by Guest
Link to comment
exports.scoreboard:addScoreboardColumn('Country') 
function showcountry() 
local flag = exports.admin:getPlayerCountry ( source ) 
    if flag then 
    setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") 
    else 
    flag = "N/A" 
    end 
end 
addEventHandler("onPlayerJoin",getRootElement(),showcountry) 

I made this script does not detect the country and not detect the flag

Link to comment

EDIT : mybe this will help you

Orange : we don't need your crap useless post's help or shut up and don't spam

----flag.lua

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

<meta> 
    <script src="flag.lua" type="server" /> 
 </meta> 

add this on line 705 (maybe you need to ad somewhere els bk your scoreboard is difrent)
elseif column.name == "Pic" then 
  dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) 

Edited by Guest
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...