Forum

> > CS2D > Scripts > me make this script trigger
Forums overviewCS2D overview Scripts overviewLog in to reply

English me make this script trigger

6 replies
To the start Previous 1 Next To the start

old me make this script trigger

NicolasProRGames
User Off Offline

Quote
hello guys well I want to know how to run this script is I'm starting to make scripts, but this one is not going right I'm a demonstration:

addhook has written
read

Quote
AddHook ("say", "door")
door function (trigger)
if txt == "password: whatever" then
parse ("trigger" PRX ")

end
end
end




Please consult each other so this is for my server my clan
please ...

old Re: me make this script trigger

TopNotch
User Off Offline

Quote
user NicolasProRGames has written
but this one is not going right I'm a demonstration

You're a demonstration? Google translator fails.


It's very simple, learn the basics of Lua.
Use cs2d cmd trigger and parse it (cs2d lua cmd parse).

Here's your script >

old Re: me make this script trigger

EngiN33R
Moderator Off Offline

Quote
user Jarates has written
@topnotch your coding style is similar to yates didn't you copy his script and just changed the names?

You judge his coding style by a 7-line generic script? Besides, this coding style is universal. I doubt he stole a 7-line script from Yates.

Sorry @user NicolasProRGames, I removed your post. If you want to accept an answer in a thread, don't just quote it, quote it (or link the user who wrote it with @) and say something along the lines of "Thanks, this helped" or "Thanks, this works".

old Re: me make this script trigger

TopNotch
User Off Offline

Quote
Actually I learned Lua by editing a script Yates sent me (yes I was allowed to do so).
In his script he used _hook (hook replaced by that hook), since then I always did it like him.

And no, I didn't copy paste this from Yates, I doubt he would even create this useless snippet, copy/paste this would be even more work for me, because this is so easy.
@user Jarates: Your name looks so similar to Yates' name, please could you do me a favor, get lost.
@user EngiN33R: Indeed.
edited 2×, last 28.09.13 10:59:52 am

old Re: me make this script trigger

Yates
Reviewer Off Offline

Quote
@user Jarates: No one has ever seen my fulls scripts. user TopNotch came across an admin script I made for someone a while back and asked to edit it, it was messy but the style I use was in there. No harm done though.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview