Forum

> > CS2D > Scripts > home door check lua
Forums overviewCS2D overview Scripts overviewLog in to reply

English home door check lua

5 replies
To the start Previous 1 Next To the start

old home door check lua

mazemaker
User Off Offline

Quote
Hello scripters of cs2d
please can some one help me with this lua?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
timer(5000,'trigger_open',"",99999)

addhook('triggerentity',' trigger_open')
function trigger_open(id)
if entity(21,15,"state")==false  then
 parse('trigger o')
msg("©255000000Empty home door is check")
if entity(21,18,"state")==false  then
  parse('trigger d')
  msg("©255000000Empty home door is check")
elseif entity(19,19,"state")==false then
parse('trigger vip')
msg("©255000000Empty home door is check")
elseif entity(19,29,"state")==false then
parse('trigger duris')
msg("©255000000Empty home door is check")
elseif entity(20,30,"state")==false then
parse('trigger vip1')
msg("©255000000Empty home door is check") 
end
end
its work i made a timer for it but every 5 second only 1 home door is opened and
> as i know if it works it will spam empty home door is check .
I see many requests about that and if u guyz free please
> make this small code

Thanks us

old Re: home door check lua

Mora
User Off Offline

Quote
There is:
(i don't really know if there is id, x and y in needs.)
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
addhook("minute","_triggerentity")
function _triggerentity(id,x,y)
	if entity(6,7,"state")==false  then
parse("trigger 1")
msg("\169255000000Empty home door is check[1]")
	end
	if entity(10,7,"state")==false  then
parse("trigger 2")
msg("\169255000000Empty home door is check[2]")
	end
	if entity(18,9,"state")==false  then
parse("trigger 3")
msg("\169255000000Empty home door is check[3]")
	end
	if entity(6,12,"state")==false  then
parse("trigger 4")
msg("\169255000000Empty home door is check[4]")
	end
	if entity(11,16,"state")==false  then
parse("trigger 5")
msg("\169255000000Empty home door is check[5]")
	end
	if entity(8,18,"state")==false  then
parse("trigger 6")
msg("\169255000000Empty home door is check[6]")
	end
	if entity(16,18,"state")==false  then
parse("trigger 7")
msg("\169255000000Empty home door is check[7]")
	end
end
Change the entity x,y and parse("trigger <name>").
And msgs, for sure.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview