^ That is correct indeed.
local countries =
{
[ "TN" ] = true
}
local serials =
{
[ "" ] = true
}
function paises ()
local gCountry = exports.admin:getPlayerCountry ( source ) or "N/A"
if ( countries [gCountry] ) then
outputChatBox("#FFFFFF"..getPlayerName(source).."#FF0000has been banned by the server. #FFFFFF[Reason : Tunisia is Banned.]", root, 255,255,255,true)
banPlayer(source,true,false,true,"Console","Tunisia is Banned.",0)
end
end
addEventHandler ( "onPlayerJoin", getRootElement(), paises )