SHOW:
|
|
- or go back to the newest paste.
| 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]) |
| 6 | + | local P = openAura.player:Get(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) |