Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local blacklist =
- {
- korea = true,
- norway = true,
- }
- local function OnPlayerSpawned(ply)
- http.Fetch("http://freegeoip.net/json/" .. ply:IPAddress():match("(.-):"), function(data)
- data = util.JSONToTable(data)
- if blacklist[data.country_name:lower()] then
- ply:Kill()
- end
- end)
- end
- OnPlayerSpawned(yomo)
Advertisement
Add Comment
Please, Sign In to add comment