#Paper Posted December 4, 2010 Share Posted December 4, 2010 How i can get the map's name that was set for next? and why this texts don't be show? another problem function getPlayerCountry ( player ) local ip = getPlayerIP ( player ) local ip_group = tonumber ( gettok ( ip, 1, 46 ) ) local ip_code = ( gettok ( ip, 1, 46 ) * 16777216 ) + ( gettok ( ip, 2, 46 ) * 65536 ) + ( gettok ( ip, 3, 46 ) * 256 ) + ( gettok ( ip, 4, 46 ) ) if ( not aCountries[ip_group] ) then loadIPGroup ( ip_group ) end for id, group in ipairs ( aCountries[ip_group] ) do if ( ( group.rstart <= ip_code ) and ( ip_code <= group.rend ) ) then return group.rcountry end end return false end function countryscore () call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Country") setElementData ( source, "Country", getPlayerCountry(source) ) end addEventHandler("onPlayerJoin", countryscore) don't make the cullumn Link to comment
Castillo Posted December 4, 2010 Share Posted December 4, 2010 lol, you're creating a column every time a player joins, also that function i think needes the xml files from admin panel. Link to comment
#Paper Posted December 4, 2010 Author Share Posted December 4, 2010 lol, you're creating a column every time a player joins, also that function i think needes the xml files from admin panel. can you fix it pls? 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