Forum

> > CS2D > Scripts > Spawn only with command (Script Request)
Forums overviewCS2D overview Scripts overviewLog in to reply

English Spawn only with command (Script Request)

2 replies
To the start Previous 1 Next To the start

old Spawn only with command (Script Request)

kerker
User Off Offline

Quote
Hello, us!
I need a script that performs the following functions, and meets the requirements:
Before the administrator (usgn ID) will write the command !startround players can't spawn. Only then, when players click the left mouse button can start play.Before writing this command players can't spawn (except admin).

I think you understand me.

old Re: Spawn only with command (Script Request)

Baloon
GAME BANNED Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
admins={142503}
RStart=false

addhook("say","sayhook")
function sayhook(id,txt)
	local t= string.lower(txt)
	if string.sub(t,1,1)=="!" then
		if string.sub(t,2)=="startround" then
			for _,u in ipairs(admins) do
				if player(id,"usgn")==u then
					RStart=true
					msg("Round started by "..player(id,"name"))
				end
			end
		else
			msg2(id,string.sub(t,2).."   command does not exists!")
		end
	end
end

addhook("spawn","spawnhook")
function spawnhook(id)
	local d=player(id,"deaths")
	if not RStart then
		parse("killplayer "..id)
		parse("setdeaths "..id.." "..d)
		msg2(id,"You are not able to spawn, wait until administrator enable spawns!")
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview