Jump to content

Next Map and others


#Paper

Recommended Posts

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

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