• Utility library for dealing with rdmers
    41 replies, posted
This script works, but wrong.Great idea for creating a notification of server language. Only schoolboys love rdm, stop them, not russians. Is it a new kind of sanctions? (Lol) Not all of russians are rdmers. It's a hate speech, stop shaming yourself. And just (look at the picture, buddy) [img]https://pp.vk.me/c540103/v540103073/1a749/eP_c--SDGZk.jpg[/img] Hating is bad, stop being like a pussy, try to be a man. I'm sorry for an offtop and language. I'm russian and i'll find you in doto ;)
This is quite bad you know - you missed a bracket on the call to pairs(). RDM isn't suppost to mean "Russian DeathMatchers" - RDM is normally committed by children whose parents haven't executed good judgement in Restriction of their Digital Merchandise..
VPN power :)
[QUOTE=ph:lxyz;46361122]This is quite bad you know - you missed a bracket on the call to pairs(). RDM isn't suppost to mean "Russian DeathMatchers" - RDM is normally committed by children whose parents haven't executed good judgement in Restriction of their Digital Merchandise..[/QUOTE]You just had to ruin it.
[QUOTE=iJohnny;46360777]This script works, but wrong.Great idea for creating a notification of server language. Only schoolboys love rdm, stop them, not russians. Is it a new kind of sanctions? (Lol) Not all of russians are rdmers. It's a hate speech, stop shaming yourself. And just (look at the picture, buddy) [img]https://pp.vk.me/c540103/v540103073/1a749/eP_c--SDGZk.jpg[/img] Hating is bad, stop being like a pussy, try to be a man. I'm sorry for an offtop and language. I'm russian and i'll find you in doto ;)[/QUOTE] after seeing this post i think i will be installing this addon on my server too
[QUOTE=legendofrobbo;46383236]after seeing this post i think i will be installing this addon on my server too[/QUOTE] I saw the thread and installed it instant!
Trying to get the blacklist to work with a whitelist, but players that are on the blacklist are not kicked. [CODE]local WhiteList = {} WhiteList["STEAM:0:0:1231231"] = true WhiteList["STEAM:0:0:124121"] = true for k,v in pairs(player.GetAll()) do if WhiteList[v:SteamID()] then return end local country = v:GetNWString("countrycode","...") if country == "RU" or country == "GB" or country == "GBR" or country == "UK" or country == "RUS" or country == "DEU" or country == "DE" then table.insert(tbl,v) end end [/CODE]
use continue instead of return when in a loop
[QUOTE=WizardOfMoss;46337529]I made a utility library for dealing with rdmers quickly. It is serverside and can be installed by putty the coding in lua/autorun/server [CODE] hook.Add("PlayerInitialSpawn", "FetchPlayerCountry", function(ply) timer.Simple(1,function() http.Fetch("http://freegeoip.net/json/" .. (ply:IPAddress():Split(":")[1]), function(data) local tbl = util.JSONToTable(data) if tbl and IsValid(ply) then ply:SetNWString("countryname", tbl.country_name) ply:SetNWString("countrycode", tbl.country_code) end end, function() end) end) end) function player.GetRussians() local tbl = {} for k,v in pairs(player.GetAll()) do if v:GetNWString("countrycode","...") == "RU" then table.insert(tbl,v) end end return tbl end [/CODE] There are a few alternatives available, but this is probably the fastest way of getting rid of rdmers. Practical uses can be seen below. [CODE] for _,rdmer in pairs(player.GetRussians() do rdmer:Kick("Eventual mass rdm") end [/CODE] [CODE] timer.Create("RDMChecker",60,0,function() for _,ply in pairs(player.GetRussians()) do ply:Kick("Looks like you accidentally launched GMod. Did you perhaps mean DOTA 2?") end end) [/CODE] This library is open source and may be used by anyone who'd like to do so. Hope this helps you fellow server owners keep your servers clean :)[/QUOTE] I think you spelled Danish wrong
just kick everyone that lives in a country.
Good thing I live in {country unlisted}.
Sorry, you need to Log In to post a reply to this thread.