Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function DumpSIDs()
- local SIDs = {}
- for k, v in pairs(player.GetAll()) do
- if ValidEntity(v) then
- table.insert(SIDs, v:Nick() .. v:SteamID())
- if !file.Exists("logs/SIDs.txt") then
- file.Write("logs/SIDs.txt", "[" ..v:Nick() .. "]" .. ":" .. v:SteamID() .. "\n" )
- else
- file.Append("logs/SIDs.txt", "[" ..v:Nick() .. "]" .. ":" .. v:SteamID() .. "\n" )
- end
- end
- end
- end
- local Target
- concommand.Add("getSIDs", DumpSIDs)
- concommand.Add("sid", function(p, c, a)
- for k, v in pairs(player.GetAll()) do
- if ValidEntity(v) and v ~= LocalPlayer() then
- if string.match(string.lower(v:Nick()), string.lower(a[1])) then
- Target = v
- end
- end
- end
- SetClipboardText(Target:SteamID())
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement