TeamUlysses / ulib

ULib: A Lua library for more rapid development on Garry's Mod servers
http://ulyssesmod.net
Other
104 stars 55 forks source link

Use game.KickID instead of RunConsoleCommand #91

Closed wrefgtzweve closed 11 months ago

wrefgtzweve commented 1 year ago

For some reason, RunConsoleCommand kickid doesn't seem to properly kick players when they're being banned as they're connecting. After testing i've found that game.KickID does work.

Thanks for MrPresident to suggest this function

SticklyMan commented 11 months ago

I was unable to reproduce the original issue with RunConsoleCommand, but game.KickID is more targeted for what we're trying to achieve here, and it still works in my testing, so I see no reason not to accept the change. Thanks!