Forum
CS2D Scripts Open door x yOpen door x y
10 replies 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
adminlist = {} trigger_name = 'admin_trigger' addhook('say', 'say') function say(id, message) 	if message == '!uopen' then 		for n, w in ipairs(adminlist) do 			if w == player(id, 'usgn') then 				parse('trigger '.. trigger_name) 			else 				msg2(id, 'You are not allowed to use this command!') 			end 		end 		return 1 	end end
adminlist = admin list
edited 1×, last 07.09.11 11:32:14 am
@factis699
small error
chamge
1
parse('trigger '.. trigger_name
1
parse('trigger '.. trigger_name)
@doctor rainbow
go editor
take name of your door in map
copy and past in trigger_name = 'name_button_here'
edited 1×, last 07.09.11 11:32:42 am
Place Env_Dynwall at the map and name it like emm... "Bitch"
and on my script
trigger_name = "Bitch"
Thx kalis fixed.
trigger_name = 'admin_trigger'
addhook('say', 'say')
function say(id, message)
if message == '!uopen' then
for n, w in ipairs(adminlist) do
if w == player(id, 'usgn') then
parse('trigger '.. stars)
else
msg2(id, 'You are not allowed to use this command!')
end
end
return 1
end
end
But wait why it dosent work ...
1
trigger_name = 'stars'
change
1
parse('trigger '..stars)
1
parse('trigger '..trigger_name)
1
2
2
parse('trigger stars') dont need trigger_name = ' '
edited 1×, last 07.09.11 12:34:24 pm
1
administ = {123,456}
1