Forum

> > CS2D > Scripts > Wallhack When Press F
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Wallhack When Press F

9 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Wallhack When Press F

mr_s
User Off Offline

Zitieren
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

alt Re: Wallhack When Press F

ShouldBeNew
BANNED Off Offline

Zitieren
>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.

alt Re: Wallhack When Press F

mr_s
User Off Offline

Zitieren
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 Kommentar

Quote removed. It makes no sense. /user useigor

alt Re: Wallhack When Press F

useigor
User Off Offline

Zitieren
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

alt Re: Wallhack When Press F

MikuAuahDark
User Off Offline

Zitieren
@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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht