All pastes #591712 Raw Edit

Something

public lua v1 · immutable
#591712 ·published 2007-06-27 10:53 UTC
rendered paste body
include( 'shared.lua' )function rphud()local user = LocalPlayer()money = user:GetNWInt("money")job = user:GetNWString("job")joblen = string.len(job)reason = user:GetNWString("reason")realen = string.len(reason)length = 160if joblen > realen then	length = length + joblenelse	length = length + realenendsurface.SetDrawColor(255, 255, 255, 200)//surface.SetTexture(surface.GetTextureID("rp/money"))//surface.DrawTexturedRect( ScrW() / 2, ScrH() / 2, 512, 512 )surface.SetTexture(surface.GetTextureID("rp/servlogo1"))surface.DrawTexturedRect( ScrW() / 2 +430, ScrH() / 2 -370, 64, 64 )draw.RoundedBox(1,ScrW() / 2 -400,ScrH() / 2 +100,length,75,Color(200,200,200,200))draw.DrawText("Money: "..money.."\nJob: "..job.."\nReason: "..reason,"ScoreboardText",25,616,Color(100,100,100,200),0)local people = user:GetNWString("peoplebyme")local plode = string.Explode(" ",people)for k,v in pairs(player.GetAll()) do	for key,value in pairs(plode) do		if string.lower(v:Nick()) == value then			local ply = v			local pos = ply:EyePos()			pos.z = pos.z+15			pos = pos:ToScreen()						draw.DrawText( ply:Nick(), "TargetID", pos.x + 1, pos.y + 1, Color( 0, 0, 0, 255 ), 1 );			draw.DrawText( ply:Nick(), "TargetID", pos.x, pos.y, team.GetColor( ply:Team() ), 1 );										draw.DrawText( ply:GetNWString( "job" ), "TargetID", pos.x + 1, pos.y + 21, Color( 0, 0, 0, 255 ), 1 );			draw.DrawText( ply:GetNWString( "job" ), "TargetID", pos.x, pos.y + 20, Color( 255, 255, 255, 200 ), 1 );		end	endend	endhook.Add("HUDPaint","RPhud",rphud)