how to?

Posts 1624 of 24 · Page 2 of 2
Code:
LocalPlayer():ChatPrint("Names Loaded")
hook.Add( "HUDPaint", "Wallhack", function()
 
	for k,v in pairs (player.GetAll()) do
	if GetConVarNumber("Wallhack") >= 1 then
                        if v ~= LocalPlayer() then
		if(LocalPlayer():Alive() then
		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen() then
		draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
		else
                LocalPlayer():ChatPrint("names off")
	end)
end)

CreateClientConVar("Wallhack", 0, true, false)
No idea if it'll work, but it might.
Quote Originally Posted by Razer- View Post
Code:
LocalPlayer():ChatPrint("Names Loaded")
hook.Add( "HUDPaint", "Wallhack", function()
 
	for k,v in pairs (player.GetAll()) do
	if GetConVarNumber("Wallhack") >= 1 then
                        if v ~= LocalPlayer() then
		if(LocalPlayer():Alive() then
		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen() then
		draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
		else
                LocalPlayer():ChatPrint("names off")
	end)
end)

CreateClientConVar("Wallhack", 0, true, false)
No idea if it'll work, but it might.
nope still this shows up
[ERROR] lua/wh2.lua:7: ')' expected near 'then'
1. unknown - lua/wh2.lua:0
Quote Originally Posted by makee View Post
nope still this shows up
As I've stated several times, I'm not good at this, but I think this should work.
Code:
LocalPlayer():ChatPrint("Names Loaded")
 
	for k,v in pairs (player.GetAll()) do
	if GetConVarNumber("Wallhack") >= 1 then
                        if v ~= LocalPlayer() then
		if(LocalPlayer():Alive() then
		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
		draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
		else
                LocalPlayer():ChatPrint("names off")
	end)

end


hook.Add( "HUDPaint", "Wallhack", function()
CreateClientConVar("Wallhack", 0, true, false)
Quote Originally Posted by Gray View Post


As I've stated several times, I'm not good at this, but I think this should work.
Code:
LocalPlayer():ChatPrint("Names Loaded")
 
	for k,v in pairs (player.GetAll()) do
	if GetConVarNumber("Wallhack") >= 1 then
                        if v ~= LocalPlayer() then
		if(LocalPlayer():Alive() then
		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
		draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
		else
                LocalPlayer():ChatPrint("names off")
	end)

end


hook.Add( "HUDPaint", "Wallhack", function()
CreateClientConVar("Wallhack", 0, true, false)
Nope :C well this is wierd
Never mind, try what @Gray said

Anyways, I'm getting off for now.
I'll ask a friend of mine, hold on.
Code:
LocalPlayer():ChatPrint("Names Loaded")
hook.Add( "HUDPaint", "Wallhack", function()
 
	for k,v in pairs (player.GetAll()) do
	if GetConVarNumber("Wallhack") >= 1 then
                        if v ~= LocalPlayer() then
		if LocalPlayer():Alive() then
		local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
		draw.DrawText( v:Name(), "ChatFont", Position.x, Position.y, Color( 10, 255, 0, 255 ), 1 )
		else
                LocalPlayer():ChatPrint("names off")
end
end
end
end
end)
CreateClientConVar("Wallhack", 0, true, false)

This should work, all the other ones wouldn't work for obvious reasons.
You really couldn't fix that? lol...
Ok gonna try this out


Works thank you(and everyone else who tried helping me out) so much!
NaN problems.
Posts 1624 of 24 · Page 2 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?