Garry's Mod

Garry's Mod

GeoIP Connection Messages v2
39 Comments
墨染月𝑴𝑹𝒀 4 Aug, 2022 @ 11:55pm 
if a player is loading, then the player disconnects server. it can't send the Chat Text to players in server, and server-side throw a Lua Error:
[geoip] addons/geoip/lua/geoip/hooks.lua:131: attempt to index local 'ply' (a boolean value)
1. fn - addons/geoip/lua/geoip/hooks.lua:131
2. unknown - lua/ulib/shared/hook.lua:109
Can you fix it?
Savvy Kat 6 Oct, 2021 @ 1:53pm 
Worked in a local server so I assume it's good. I'll try on my actual server in a bit
0xymoron  [author] 6 Oct, 2021 @ 12:01pm 
Haven't tested it btw so let me know if it's all good now.
Savvy Kat 6 Oct, 2021 @ 11:59am 
I'm happy you took the time to fix it. Thank you!
0xymoron² 6 Oct, 2021 @ 11:18am 
Sorry for the delay boys. Just pushed an update fixing that issue.
Joheskiller |CSCλᴅᴇᴠ| 30 May, 2021 @ 1:00pm 
Agree with Savvy Kat, I also can confirm that it break "Murder" and "Guess Who". I unfortunately had to remove it too for that reason.
Savvy Kat 22 May, 2021 @ 5:48pm 
The hook PlayerConnect doesn't seem call when loading another map. This causes some values to be nil. This also breaks TTT, and possibly other gamemodes that change maps often, when loading another map for whatever reason. Maybe add some checks under PlayerInitialSpawn for nil values?
ZEROPOINTBRUH 4 May, 2021 @ 9:29am 
thanks
ZEROPOINTBRUH 28 Apr, 2021 @ 9:09am 
Ah i see.
0xymoron  [author] 28 Apr, 2021 @ 9:07am 
haven't had time to do it
ZEROPOINTBRUH 28 Apr, 2021 @ 9:05am 
is the github out?
ZEROPOINTBRUH 26 Apr, 2021 @ 2:49pm 
Thanks
0xymoron  [author] 25 Apr, 2021 @ 6:23pm 
I suppose I could make one.
ZEROPOINTBRUH 25 Apr, 2021 @ 6:14pm 
is there a github page?
Michak89 29 Jan, 2021 @ 7:40am 
petabyet.com api died.
SL1DE 24 Jan, 2021 @ 7:55am 
Hello! Can you please fix this bug? Or tell me how to fix it?

[geoip_connection_messages_v2] addons/geoip_connection_messages_v2/lua/geoip/api.lua:388: attempt to index local 'ply' (a nil value)
1. Query - addons/geoip_connection_messages_v2/lua/geoip/api.lua:388
0xymoron  [author] 19 Jul, 2020 @ 12:12pm 
I believe so yes.
Lambda 19 Jul, 2020 @ 5:23am 
Will this suppress the default "Player has joined the game." message of Gmod?
0xymoron  [author] 25 Apr, 2020 @ 7:23pm 
what you see is what you get, there are pictures.
bee 25 Apr, 2020 @ 5:06am 
does this addon shows steam id on connect and disconnect and does this addon have last seen on connect? if user getting timed out will be say he is timed out and not disconnected?
0xymoron  [author] 9 Mar, 2020 @ 8:31am 
tru
marlboro 8 Mar, 2020 @ 4:47pm 
haha nice
no more eurocucks joining to rdm and leave
0xymoron  [author] 8 Mar, 2020 @ 3:45pm 
hook.Add( "PlayerInitialSpawn", "banCountryCode", function( ply )

timer.Simple( 5, function()

if ply:GetNWString( "CountryCode" ) != nil && ply:GetNWString( "CountryCode" ) != "COUNTRYCODEHERE" then ply:Ban( 0, false ) ply:Kick( "WRONG COUNTRY BOI" ) end

end )

end )

Should work, put that somewhere in lua/autorun/server, you'll need this addon installed though.
marlboro 8 Mar, 2020 @ 3:06pm 
how to make it ban anyone who isn't from my country?
女儿 23 Sep, 2019 @ 12:58am 
It still have bugs with other gamemode like Murder, BunnyHop, PropHunt.
Players are not in the correct group, but instead is "Join/Connect", i think this is why it cause the problem.

[ERROR] lua/geoip/hooks.lua:75: attempt to index a nil value
1. fn - lua/geoip/hooks.lua:75
2. unknown - lua/ulib/shared/hook.lua:109
oldschool 19 Feb, 2019 @ 10:00am 
Please tell me how to disable the standard notification in the chat and add what would be seen for what reason left the game!
0xymoron  [author] 2 Jan, 2019 @ 7:25pm 
No problem, enjoy!
Awali Avali 2 Jan, 2019 @ 6:25pm 
Righty, thanks mate.
0xymoron  [author] 2 Jan, 2019 @ 12:37am 
Yessir.
Awali Avali 2 Jan, 2019 @ 12:26am 
I assume you just add this to a dedicated server then?
女儿 19 Oct, 2018 @ 7:08am 
Why there is no state name?
Alexander88207 12 Aug, 2018 @ 8:23am 
No Please Keep it
0xymoron  [author] 11 Aug, 2018 @ 9:04am 
I'll think about it, I'm probably just going to remove that workshop item though.
女儿 11 Aug, 2018 @ 1:44am 
Why not update the old one.
Destiny 10 Aug, 2018 @ 2:38am 
tbh,if I was you.I'd start improving the addon regardless of it's attention.Eitherway I'll still use it on my server,thanks :D
0xymoron  [author] 10 Aug, 2018 @ 2:33am 
"Stood" would be incorrect.
I may make it possible to create custom strings in the future, we'll see how much attention this addon gets.
Feel free to extract the addon and change the strings around, you can find them in lua/geoip/hooks.lua
Destiny 10 Aug, 2018 @ 2:20am 
How about "was conected for 13 minutes"?
Or atleast stood....
nova king way 9 Aug, 2018 @ 8:00pm 
FIRST