Helpplayer list with groups

Posts 16–30 of 31 · Page 2 of 3
Code:
	local ******PKillVars = {
	
	
	TEXT_WIDTH = 0,
	TEXT_HEIGHT = 0,
	BOX_LEFT_MARGIN = 20,
	BOX_CORNER_RADIUS = 4,
	BOX_PADDING = 10,
	BOX_WIDTH = 0,
	BOX_HEIGHT = 0,
	BOX_X = 0,
	BOX_Y = 0,
	BOX_COLOUR = Color(0, 0, 0, 200),
	TEXT_COLOUR = Color(255, 255, 0, 255)
} 

surface.CreateFont( "******font", {
	font = "Arial",
	size = 13,
	weight = 500,
	blursize = 0,
	scanlines = 0,
	antialias = true,
	underline = false,
	italic = false,
	strikeout = false,
	symbol = false,
	rotary = false,
	shadow = true,
	additive = false,
	outline = true,
} )

	

			
			
hook.Add( "HUDPaint", "lol", function()
if GetConVar("players_enable"):GetInt() == 1 then	
				local line = 1
		for k, v in pairs(player.GetAll()) do
			draw.DrawText(
				k .. '. ' .. v:Name(),
				'******font',
				******PKillVars.BOX_X + ******PKillVars.BOX_PADDING,
				******PKillVars.BOX_Y + ******PKillVars.BOX_PADDING + (******PKillVars.TEXT_HEIGHT * line),
				k == ******PKillVars.selected and ******PKillVars.TEXT_COLOUR_SELECTED or ******PKillVars.TEXT_COLOUR,
				TEXT_ALIGN_LEFT
			)
			line = line + 1
		end
		end
		end)
		
	CreateClientConVar( "players_enable", 0, false, false )
so I spent a couple of hours trying to fix it but I can't for the life of me fix it, in that time this is what I came up with. It still overlaps the names. sorry if i'm being kind of noobish.
thats because 0 * n = 0

u c+p that code from another thread i reply to u but u missed the assignment directly below the declaration lol
if i tell you the answer will you stop posting?
Quote Originally Posted by D3M0L1T10N View Post
if i tell you the answer will you stop posting?
yes. i will stop posting on mpgh
Code:
surface.CreateFont( "******font", {
	font = "Arial",
	size = 13,
	weight = 750,
	blursize = 0,
	scanlines = 0,
	antialias = false,
	underline = false,
	italic = false,
	strikeout = false,
	symbol = false,
	rotary = false,
	shadow = true,
	additive = false,
	outline = true,
} )

local topleft = TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP


local MaxPlayers = 40 // Max players you want shown on screen
hook.Add( "HUDPaint", "watermark", function()
draw.DrawText("Players: ","******font", 0, 0, Color(0,255,0,255), topleft)
for k,v in pairs( player.GetAll() ) do
if k > MaxPlayers then return end
draw.DrawText( v:Nick(),"******font", 0, k*12+12, Color( 0,255,0,255 ), topleft )
end
end)
wow guys, just fucking do k * # on y and you're fine
Quote Originally Posted by ehex View Post
wow guys, just fucking do k * # on y and you're fine
inb4 exactly what I just posted.

To get the users group just use v:GetUserGroup()
Quote Originally Posted by tehhkp View Post
inb4 exactly what I just posted.

To get the users group just use v:GetUserGroup()
Or do it the correct way since there's a Networked String for usergroup with an original name: 'usergroup'.
Quote Originally Posted by Kona-chan View Post
Or do it the correct way since there's a Networked String for usergroup with an original name: 'usergroup'.
they are both correct, just one way is more direct than the other
usually u want to filter some players (dead/urself) so a line variable is more appropriate
I'm surprised he's gotten as far as making his own c+p hack. At first he was just a leacher.
Posts 16–30 of 31 · Page 2 of 3

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us