It doesn't work, even the command itself... It's weird, since i have the same code here without errors, also checking those lines i didn't find anything uncommon...
[ERROR] lua/autorun/sv_lastjoin.lua:221: 'end' expected (to close 'function' at line 155) near 'elseif'
1. unknown - lua/autorun/sv_lastjoin.lua:0
[ERROR] lua/autorun/sv_lastjoin.lua:176: 'end' expected (to close 'function' at line 155) near 'elseif'
1. unknown - lua/autorun/sv_lastjoin.lua:0
Yeah, I don't mess around with Garry's Mod anymore, and I don't have a proper code editor anymore. I opened it on my old laptop that I used to use for coding and found the issue, I copied and pasted in the wrong area, and forgot about an end statement.
This will work now.