--because we can ask the server for these we gotta doit some other way local volforceWindow = require("components.volforceWindow") local port = "multi/Players/" local path = "dan/" local UsBottom = gfx.CreateSkinImage("result/multi_4p/base.png",0) local UsTop = gfx.CreateSkinImage("result/multi_4p/top.png",0) local pos = { gfx.CreateSkinImage("result/multi_4p/pos/1.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/2.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/3.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/4.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/5.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/6.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/7.png", 0), gfx.CreateSkinImage("result/multi_4p/pos/8.png", 0), } local names = { default = { name = "USC", vf = "0.000", badge = gfx.CreateSkinImage("multi/Players/default/none.png",1), plpn = gfx.CreateSkinImage(port.."default/portrait.png",1), ap = gfx.CreateSkinImage(port.."default/appeal_card.png",1) }, } playercheck = function(name,text) local i = result.displayIndex if name ~= names.default.name then namestring = names.default.name forcestring = names.default.vf imgstring = names.default.plpn badgestring = names.default.badge appealstring = names.default.ap end gfx.LoadSkinFont('Digital-Serial-Bold.ttf') gfx.FontSize(26) local posDWWidth, posDWHeight = gfx.ImageSize(UsBottom) local posUPWidth, posUPHeight = gfx.ImageSize(UsTop) local posWidth, posHeight = gfx.ImageSize(pos[i+1]) local multy = 16; local multx = 0; local half = 1.1 gfx.BeginPath() gfx.ImageRect(multx, multy,posDWWidth/half,posDWHeight/half,UsBottom,1,0) gfx.BeginPath(); gfx.ImageRect(multx,multy, posDWWidth/1.17,posDWHeight/1.17,imgstring, 1, 0); gfx.BeginPath() gfx.ImageRect(multx, multy,posUPWidth/half,posUPHeight/half,UsTop,1,0) gfx.BeginPath(); gfx.ImageRect(multx + 10, multy + 50, 103/1.17, 132/1.17, appealstring, 1, 0); gfx.BeginPath() gfx.ImageRect(multx+332.5, multy+240, 79/half/1.5, 69/half/1.5, badgeImage, 1, 0) gfx.BeginPath() gfx.ImageRect(multx+272, multy+80,posWidth/1.18,posHeight,pos[i+1],1,0) gfx.Text(string.upper(namestring),multx+75,multy+248) volforceWindow.render(0, multx+250,multy+155,42,true,forcestring) gfx.BeginPath(); gfx.ImageRect(multx+135,multy+165, 107/1.17, 29/1.17,badgestring, 1, 0); gfx.Text(text, multx + 15, multy + 294); gfx.FontSize(24) gfx.Text(string.format("%04d", math.floor(result.score/10000)), multx+221, multy+289) local lastFourDigits = ((result.score / 10000) - math.floor(result.score / 10000))*10000 gfx.Text(string.format("%04d", math.floor(lastFourDigits)), multx+273, multy+289) end return playercheck