Forum

> > CS2D > Scripts > Spawn only with command (Script Request)
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Spawn only with command (Script Request)

2 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Spawn only with command (Script Request)

kerker
User Off Offline

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

alt Re: Spawn only with command (Script Request)

Baloon
GAME BANNED Off Offline

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