English On/Off gate as Script.

10 replies
Goto Page
To the start Previous 1 Next To the start
25.07.18 03:59:07 pm
Up
Man Of Steel
User
Offline Off
Hello everyone,

i need some help.

I'm using a script for teleport a player in a new place if he kill 10 or more players.

Script below:
Spoiler >


I made a room in my map where a new place if anybody kill 10 or more players, i want this room gate only operate/use by them who killed 10 or more players if 1 or more players got this room so he can use.
i set Gate names to "mygate"

Please help anybody can make this script for me.
FRiendly boYy.
25.07.18 04:59:37 pm
Up
Gaios
Security Supporter
Offline Off
Teleportation jutsu
26.07.18 10:01:05 am
Up
Man Of Steel
User
Offline Off
Anybody can help me?
FRiendly boYy.
26.07.18 12:25:37 pm
Up
Quattro
User
Offline Off
...You didn't even remove my debugger? It sends hud every 100ms you know

Learn how it works before trying to do difficult stuff
26.07.18 02:07:49 pm
Up
Man Of Steel
User
Offline Off
@user Quattro: I will change it i know how to change your Fking hudtxt

Can help me as i want in my topic ?
FRiendly boYy.
26.07.18 03:41:38 pm
Up
KingShadow
User
Offline Off
something like that file cs2d [Gajos] House Script [v1.0] (11) ??
27.07.18 09:12:50 am
Up
Quattro
User
Offline Off
Well you won't get any FKing help from me anymore
27.07.18 11:00:18 am
Up
minos
User
Offline Off
try this one :
Code:
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
41
42
43
44
45
46
47
48
49
50
51
52
53
--------------------------
---Teleportation jutsu----
--------------------------
tilex = 23
tiley = 1

--------------------------
----Score requirements----
--------------------------
score_max = 10
---------------
-----Setup-----
---------------
kills = 0
use_gate = {}
for i = 1, 32 do ace[i] = 0 end
addhook("spawn","_spawn")
addhook("ms100","debugger")
addhook("join","_join")
addhook("kill","_kill")

---------------
---Functions---
---------------
function debugger()
    parse('hudtxt 0 "©255255255P1Ace?: ['..ace[1]..']   P1Kills: ['..player(1,'score')..']   P1Deaths: ['..player(1,'deaths')..']" 100 100 0 0 20')
end

function _spawn(id)
if use_gate[id] == true then 
local x = tilex * 32 + 16
local y = tiley * 32 + 16
parse('setpos '..id..' '..x..' '..y)
msg2(id,'©255255255New Place')
end
end

function kill(k,v)
kills[k] = kills[k] + 1 
     if kills[k] > score_max then 
          if player(k,"deaths") <= 0 then 
               if use_gate == false then 
                    use_gate[k] = true
                    kills[k] = 0
               end
          end
     end
end

function _join(id)
use_gate[id] = false
kills[id] = 0 
end


PS : I didn't test it.
l
27.07.18 06:05:07 pm
Up
Man Of Steel
User
Offline Off
@user minos: Thanks for help but where set gate name?
gate no working
FRiendly boYy.
27.07.18 06:22:55 pm
Up
KingShadow
User
Offline Off
give me x and y of your gate you can find it in map editor of your map in the down of the screen x|y thats tile position give me it :v
28.07.18 08:41:18 am
Up
Man Of Steel
User
Offline Off
@user KingShadow: Choose any gate x | y temporary
i will change
FRiendly boYy.
To the start Previous 1 Next To the start