Forum

> > CS2D > Scripts > 10/10 Killer teleport other place next round.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch 10/10 Killer teleport other place next round.

11 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt 10/10 Killer teleport other place next round.

Man Of Steel
User Off Offline

Zitieren
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

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

Quattro
GAME BANNED Off Offline

Zitieren
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

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

Masea
Super User Off Offline

Zitieren
user Quattro hat geschrieben
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.

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

Quattro
GAME BANNED Off Offline

Zitieren
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 >
5× editiert, zuletzt 22.06.18 19:47:32

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

Man Of Steel
User Off Offline

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

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

Quattro
GAME BANNED Off Offline

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