Forum

> > CS2D > Scripts > Wallhack When Press F
Forums overviewCS2D overview Scripts overviewLog in to reply

English Wallhack When Press F

9 replies
To the start Previous 1 Next To the start

old Wallhack When Press F

mr_s
User Off Offline

Quote
hello i want script wallhack when press F and the adminlist is in admin_wh.txt i need only wallhack and the usgns in admin_wh.txt only can wallhack but if one other than in admin_wh.txt then msg2 : You Dont Have Permission To WallHack!! in red color

old Re: Wallhack When Press F

ShouldBeNew
BANNED Off Offline

Quote
>Admins are hacking.
>Players are rage quitting.
>All players hate the server.
>Turns into an admin fun server.
Servers are made to play.
And admins are made to rule the server, kick players and more (also playing too).


But you can do this if you wan't. I'm just trying to say what could go wrong.

old Re: Wallhack When Press F

mr_s
User Off Offline

Quote
guy, i have a server with roleplay script. but all serveractions are being used, so i wanted to use wallhack by pressing F but i am not a good scripter

Admin/mod comment

Quote removed. It makes no sense. /user useigor

old Re: Wallhack When Press F

useigor
User Off Offline

Quote
12 - size of step for wall hack.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
adminlist = {1}

addhook("flashlight","pressment")
function pressment(id,s,rot,x,y)
	for n,usgn in pairs(adminlist) do
		if player(id,"usgn") == usgn then
			rot = math.rad( player(id,"rot")-90 )
			x = player(id,"x") + math.cos(rot) * 12
			y = player(id,"y") + math.sin(rot) * 12
			parse("setpos "..id.." "..x.." "..y)
			break
		elseif n == #adminlist then
			msg2(id,"\169255000000You Dont Have Permission To WallHack!!")
		end
	end
end

old Re: Wallhack When Press F

MikuAuahDark
User Off Offline

Quote
@user useigor: Make sure to check if it's going teleport to out of map boundaries

Ah yes, some addtional code. It loads file admin_wh.txt and put it's usgn to adminlist
1
2
3
4
5
6
7
8
do
	for line in io.lines("admin_wh.txt") do
		local u=tonumber(line)
		if u then
			table.insert(adminlist,u)
		end
	end
end

Put code above after adminlst={1} at user useigor code
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview