I know of the P.Avatar or whatever but it uses a 32x32. Is there some way for a bigger one or even perhaps a code to using a normal JPG instead of a TGA?
I got an idea with HTML but I doesn't solve it cause the image doesn't actually change the size, its the broswer that changes the size. And I am trying to use GetHTMLMaterial() but no luck so far...
Would something like this work for you?
[lua]
function FindAvatar( ply )
local SteamID = ply:SteamID()
local CommunityID = SteamID:sub(11) * 2 + SteamID:sub(9, 9) + 1197960265728;
http.Get("http://steamcommunity.com/profiles/7656" .. CommunityID .. "/?xml=1", "", function( c, s )
local XML = string.lower( c )
local FindStart = string.lower( "<avatarFull>" )
local StartTag = string.find( XML, FindStart )
local FindEnd = string.lower( "</avatarFull>" )
local EndTag = string.find( XML, FindEnd )
print( string.sub( XML, StartTag + 21, EndTag - 12 ) .. "full.jpg" )
end)
end
function TestAvatarFind( ply )
FindAvatar( ply )
end
concommand.Add( "find_avatar", TestAvatarFind )
[/lua]
Output (When I use it):
[url]http://media.steampowered.com/steamcommunity/public/images/avatars/4c/4c875eae5c019e757f4d8ae9aaee75870331cf67_full.jpg[/url]
[QUOTE=Trivkz;25403130]Would something like this work for you?[/QUOTE]
I already tried that, thing is that the web broswer, when you change the size of it, doesn't change the size of the picture, but the browser. So thing is like I 'ALWAYS' must make it say 64x64. Which is total BS...
Sorry, you need to Log In to post a reply to this thread.