Garry's Mod

Garry's Mod

GeoIP Connection Messages v2
39 kommentarer
墨染月𝑴𝑹𝒀 4 aug, 2022 @ 23:55 
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 okt, 2021 @ 13:53 
Worked in a local server so I assume it's good. I'll try on my actual server in a bit
0xymoron  [skapare] 6 okt, 2021 @ 12:01 
Haven't tested it btw so let me know if it's all good now.
Savvy Kat 6 okt, 2021 @ 11:59 
I'm happy you took the time to fix it. Thank you!
0xymoron² 6 okt, 2021 @ 11:18 
Sorry for the delay boys. Just pushed an update fixing that issue.
Joheskiller |CSCλᴅᴇᴠ| 30 maj, 2021 @ 13:00 
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 maj, 2021 @ 17:48 
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 maj, 2021 @ 9:29 
thanks
ZEROPOINTBRUH 28 apr, 2021 @ 9:09 
Ah i see.
0xymoron  [skapare] 28 apr, 2021 @ 9:07 
haven't had time to do it
ZEROPOINTBRUH 28 apr, 2021 @ 9:05 
is the github out?
ZEROPOINTBRUH 26 apr, 2021 @ 14:49 
Thanks
0xymoron  [skapare] 25 apr, 2021 @ 18:23 
I suppose I could make one.
ZEROPOINTBRUH 25 apr, 2021 @ 18:14 
is there a github page?
Michak89 29 jan, 2021 @ 7:40 
petabyet.com api died.
SL1DE 24 jan, 2021 @ 7:55 
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  [skapare] 19 jul, 2020 @ 12:12 
I believe so yes.
Lambda 19 jul, 2020 @ 5:23 
Will this suppress the default "Player has joined the game." message of Gmod?
0xymoron  [skapare] 25 apr, 2020 @ 19:23 
what you see is what you get, there are pictures.
Speedy 25 apr, 2020 @ 5:06 
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  [skapare] 9 mar, 2020 @ 8:31 
tru
marlboro 8 mar, 2020 @ 16:47 
haha nice
no more eurocucks joining to rdm and leave
0xymoron  [skapare] 8 mar, 2020 @ 15:45 
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 @ 15:06 
how to make it ban anyone who isn't from my country?
女儿 23 sep, 2019 @ 0:58 
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:00 
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  [skapare] 2 jan, 2019 @ 19:25 
No problem, enjoy!
Caffieinated Avali 2 jan, 2019 @ 18:25 
Righty, thanks mate.
0xymoron  [skapare] 2 jan, 2019 @ 0:37 
Yessir.
Caffieinated Avali 2 jan, 2019 @ 0:26 
I assume you just add this to a dedicated server then?
女儿 19 okt, 2018 @ 7:08 
Why there is no state name?
Alexander88207 12 aug, 2018 @ 8:23 
No Please Keep it
0xymoron  [skapare] 11 aug, 2018 @ 9:04 
I'll think about it, I'm probably just going to remove that workshop item though.
女儿 11 aug, 2018 @ 1:44 
Why not update the old one.
Destiny 10 aug, 2018 @ 2:38 
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  [skapare] 10 aug, 2018 @ 2:33 
"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:20 
How about "was conected for 13 minutes"?
Or atleast stood....
nova king way 9 aug, 2018 @ 20:00 
FIRST