Forum

> > CS2D > Scripts > New kind of game mode
Forums overviewCS2D overview Scripts overviewLog in to reply

English New kind of game mode

24 replies
Page
To the start Previous 1 2 Next To the start

old Re: New kind of game mode

Jaso
BANNED Off Offline

Quote
Thanks i will try it later when i tried it i will say if it works.

[EDIT]: its not working the script doesnt select anyone as the killer and you cant buy anything!
And the scrore has to reset if you leave the game!
edited 5×, last 22.04.11 05:06:02 pm

old Re: New kind of game mode

Homam
User Off Offline

Quote
1 - Put 1 bot and play with him in a server, when u start, go to T.
2 - Yes, i know it shoud reset points when a player leaves, because it need a save script...
3 - You can buy the hp upgrade, am not done with the quick potions..

Try Again...

old Re: New kind of game mode

Jaso
BANNED Off Offline

Quote
But you have to create the killer and the killer must have unlimited hp and it needs to say like Jaso55 is now the killer so the killer can only hurt people the killer also needs stealth suite and +5 speed

[Edit]: It would be nice to if there is no player and the first player that just joins has to be the killer than it just doesnt matter on what side he is t or ct

old Re: New kind of game mode

DsTyLe
User Off Offline

Quote
here is a part of the code, to select the killer

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
30
31
32
33
34
35
36
37
38
39
40
addhook("endround","end")
function start()
	for d = 1,32 do
		parse("makect "..d)
	end
	local p = player(0,"team2")
	local k = math.random(1,#p)
	if p[k]~=nil then
		parse("maket "..p[k])
	else
		if k~=1 then
			k=k-1
			parse("maket "..p[k])
		elseif k==1 then
			k=k+1
			parse("maket "..p[k])
		end
	end
end
addhook("startround","start")
function start()
	for w = 1,32 do
		if player(w,"team")==1 then
			parse("equip "..w.." "..ss)
			inv[w]=true
		end
	end
end
addhook("buy","buy")
function buy(id)
	if player(id,"team")==1 then
		return 1
	end
end
addhook("hit","hit")
function hit(id)
	if inv[id]==true
		return 1
	end
end

You have to put initarray function on code

old Re: New kind of game mode

Jaso
BANNED Off Offline

Quote
Thanks but you are a little bit to late Homan made it already for me sorry but thanks for you work
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview