HungerJohnson

Untitled

Aug 20th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | None | 0 0
  1. local function LookPersonUp(ply, cmd, args)
  2.     if not args[1] then
  3.         ply:PrintMessage(2, string.format(LANGUAGE.invalid_x, "argument", ""))
  4.         return
  5.     end
  6.     local P = GAMEMODE:FindPlayer(args[1])
  7.     if not ValidEntity(P) then
  8.         if ply:EntIndex() ~= 0 then
  9.             ply:PrintMessage(2, string.format(LANGUAGE.could_not_find, "player: "..tostring(args[1])))
  10.         else
  11.             print(string.format(LANGUAGE.could_not_find, "player: "..tostring(args[1])))
  12.         end
  13.         return
  14.     end
  15.     if ply:EntIndex() ~= 0 then
  16.         ply:PrintMessage(2, "Nick: ".. P:Nick())
  17.         ply:PrintMessage(2, "Steam name: "..P:SteamName())
  18.         ply:PrintMessage(2, "Steam ID: "..P:SteamID())
  19.     else
  20.         print("Nick: ".. P:Nick())
  21.         print("Steam name: "..P:SteamName())
  22.         print("Steam ID: "..P:SteamID())
  23.     end
  24. end
  25. concommand.Add("id", LookPersonUp)
Advertisement
Add Comment
Please, Sign In to add comment