Jump to content

Help Scoreboard Flags Country's


MrXz

Recommended Posts

Posted (edited)

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
430x73.png
Posted (edited)

What I seek is AFK detector that in passing a given time, the server kicked you

and the script of the flag of every country in the scoreboad

Edited by Guest
430x73.png
Posted

We don't give out scripts like that, we help you to seek/fix errors in your scripts.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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

430x73.png
Posted

To show the country flag in the scoreboard you must the scoreboard himself, right now it just draw's texts.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted (edited)

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

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