Forum

> > CS2D > Scripts > speclock script
Forums overviewCS2D overview Scripts overviewLog in to reply

English speclock script

2 replies
To the start Previous 1 Next To the start

old speclock script

KagamineLen
User Off Offline

Quote
please help me make a script that when you say:
Quote
!speclock 5


it will spectator lock a player for 10 minutes

old Re: speclock script

Banaan
User Off Offline

Quote
please click on search and type teamlock because people have asked & answered this question a zillion times already.

old Re: speclock script

Apache uwu
User Off Offline

Quote
like this?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
addhook("say","_say")
addhook("team","_team")

t_locked={}

function _say(id,message)
	if player(id,"usgn")=="44691" then
		if message:sub(1,10)=="!speclock " then
			if player(message:sub(11),"exists") then
				t_locked[player(message:sub(11),"ip")]=os.time()+600
			msg(player(message:sub(11),"name").." has been speclocked.")
			end
		end
	end
end

function _team(id)
	if t_locked[player(id,"ip")]~=nil then
		if t_locked[player(id,"ip")]<os.time() then
			msg2(id,"You have been locked.")
			return 1
		end
	end
end

completely untested im just bored
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview