Forum

> > CS2D > Scripts > 10/10 Killer teleport other place next round.
Forums overviewCS2D overview Scripts overviewLog in to reply

English 10/10 Killer teleport other place next round.

11 replies
To the start Previous 1 Next To the start

old 10/10 Killer teleport other place next round.

Man Of Steel
User Off Offline

Quote
Hi everyone.

I want to add a new feature in my map, So i need community help for done it.

I want if Counter Terrorist Kill Players 10/10 Without die in round, Next Round his game start Tile 38|79, Actually i made a room for 10/10 Killer for Gift/achievement, There i made a Use button for gate
I set trigger_use name to "button". I Just want 10/10 Killer Only can open trigger_use "button"

I need this script
Pleas help me

old Re: 10/10 Killer teleport other place next round.

Quattro
GAME BANNED Off Offline

Quote
I would do 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
25
26
27
28
29
ace = {}
tilex = 38
tiley = 79
for i = 1, 32 do ace[i] = 0 end

addhook("endround","kills_check")
addhook("startround","ace_check")

function kills_check()
	for i = 1, 32 do
        if player(i,'exists') then
            if player(i,'kills') == 10 then
                if player(i,'deaths') == 0 then
                    ace[i] = 1
                end
            end
        end
	end
end

function ace_check()
local x = tilex * 32
local y = tiley * 32
    for i = 1, 32 do
        if ace[i] == 1 then
            parse('setpos '..i..' '..x..' '..y)
        end
    end
end

old Re: 10/10 Killer teleport other place next round.

Masea
Super User Off Offline

Quote
user Quattro has written
1
2
local x = tilex * 32
local y = tiley * 32
And by the way, this won't be the exact position you want. However, adding
+ 16
to the ending will be:
local x, y = tilex * 32 + 16, tiley * 32 + 16


Otherwise, we would be teleported moderately to top-left of the position which could bore us indeed.

old Re: 10/10 Killer teleport other place next round.

Quattro
GAME BANNED Off Offline

Quote
Yeah Masea true, to place player in the center you gotta add 16/16.

LOL it really doesn't work because I forgot to write "score" and wrote "kills" instead. This gets me every time

Here you go tested myself:

Spoiler >
edited 5×, last 22.06.18 07:47:32 pm

old Re: 10/10 Killer teleport other place next round.

Man Of Steel
User Off Offline

Quote
@user Quattro: Thanks buddy script working but please can you add another thing as i want?
Please make this script only for counter terrorist and I'm using trigger_use for On/Off Gate(Dynwall) as a gate for room i want Only 10/10 killer use this trigger_use.I set trigger_use name to (button) by the way.

can you help me again?

Anyways thanks a lot

old Re: 10/10 Killer teleport other place next round.

Quattro
GAME BANNED Off Offline

Quote
Spoiler >


Making it for CT is easy, but combining things with trigger_use you have to figure out yourself or maybe someone else knows how to do it
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview