Forum

> > CS2D > Scripts > Say command = trigger use
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say command = trigger use

4 replies
To the start Previous 1 Next To the start

old Say command = trigger use

Mora
User Off Offline

Quote
Hello all! i want make one small script...but i dont know how
Please help me with this code:
1
2
3
4
5
6
addhook("say","_say")
function _say(id,msg)
if msg==("!openmyhome") and player(id,"usgn") == 114940 then
parse("trigger AdminDoor")
end
end
Thanks you

old Re: Say command = trigger use

Rainoth
Moderator Off Offline

Quote
1
2
3
4
5
6
addhook("say","_say")
function _say(id,msg)
	if msg=="!openmyhome" and player(id,"usgn") == 114940 then
		parse("trigger AdminDoor")
	end
end

Pretty sure it's fine and should work...

old Re: Say command = trigger use

Mora
User Off Offline

Quote
I just need fix this code!
why you get me this link?"click this link" <-here nothing for me.

Raining Mammoths you got! thanks you so much
how i can thanks you???

To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview