luck. Posted June 10, 2013 Share Posted June 10, 2013 (edited) first Hello, I'm new here in the forum good, I made a script to show the country and the flag, one in each column, my question is, how can I put them both in the same column? Excuse my bad English. my code countryNames = { AD="Andorra (AD)", AE="Emirados Arabes (EA)", AF="Afeganistão (AF)", AG="Antigua Bardura (AG)", ....................... } exports.scoreboard:addScoreboardColumn('País') function showcountry () local country = exports.admin:getPlayerCountry ( source ) if country then setElementData(source,"País","".. countryNames[tostring(country)] .."") else country = "N/A" end end addEventHandler ( "onPlayerJoin", getRootElement(), showcountry ) exports.scoreboard:addScoreboardColumn('Flag') function showcountry () local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Flag",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler ( "onPlayerJoin", getRootElement(), showcountry ) Edited June 10, 2013 by Guest Link to comment
Castillo Posted June 10, 2013 Share Posted June 10, 2013 Someone else already asked for this, and I helped him, search the forums for the topic. Link to comment
luck. Posted June 10, 2013 Author Share Posted June 10, 2013 Someone else already asked for this, and I helped him, search the forums for the topic. Sorry, I did it anymore and just think cases of requests to put the country and the flag, more like put both in one column I have not found '--' Link to comment
Castillo Posted June 10, 2013 Share Posted June 10, 2013 viewtopic.php?f=91&t=52867&p=516237 Link to comment
luck. Posted June 12, 2013 Author Share Posted June 12, 2013 worked perfectly, thank you Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now