Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND = openAura.command:New();
- COMMAND.tip = "Loko up a person's information!";
- COMMAND.text = "<string Name>";
- COMMAND.access = "o";
- COMMAND.arguments = 1;
- function COMMAND:OnRun(player, arguments)
- if not args[1] then
- ply:PrintMessage(2, string.format(LANGUAGE.invalid_x, "argument", ""))
- return
- end;
- local P = openAura.player:Get( arguments[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;
- openAura.command:Register(COMMAND, "Lookup");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement