Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function LookPersonUp(ply, cmd, args)
- if not args[1] then
- ply:PrintMessage(2, string.format(LANGUAGE.invalid_x, "argument", ""))
- return
- end
- local P = GAMEMODE:FindPlayer(args[1])
- if not ValidEntity(P) then
- if ply:EntIndex() ~= 0 then
- ply:PrintMessage(2, string.format(LANGUAGE.could_not_find, "player: "..tostring(args[1])))
- else
- print(string.format(LANGUAGE.could_not_find, "player: "..tostring(args[1])))
- end
- return
- end
- if ply:EntIndex() ~= 0 then
- ply:PrintMessage(2, "Nick: ".. P:Nick())
- ply:PrintMessage(2, "Steam name: "..P:SteamName())
- ply:PrintMessage(2, "Steam ID: "..P:SteamID())
- else
- print("Nick: ".. P:Nick())
- print("Steam name: "..P:SteamName())
- print("Steam ID: "..P:SteamID())
- end
- end
- concommand.Add("id", LookPersonUp)
Advertisement
Add Comment
Please, Sign In to add comment