English me make this script trigger

6 replies
Goto Page
To the start Previous 1 Next To the start
26.09.13 04:39:30 pm
Up
NicolasProRGames
User
Offline Off
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 ...
26.09.13 04:53:30 pm
Up
TopNotch
User
Offline Off
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 >
26.09.13 08:57:37 pm
Up
lucaSWAT
User
Offline Off
Take this simple script file cs2d [Gajos] Open Door [v1.0] (7) ,or you can use What did the user TopNotch made
IMG:http://steamsignature.com/status/default/76561198053665521.png
IMG:http://steamsignature.com/AddFriend.png
28.09.13 07:38:12 am
Up
Jarates
User
Offline Off
@topnotch your coding style is similar to yates didn't you copy his script and just changed the names?
28.09.13 08:58:06 am
Up
EngiN33R
Moderator
Offline Off
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".
I code, therefore I exist. | Visit my blog for Lua tips and other interesting info
28.09.13 09:51:52 am
Up
TopNotch
User
Offline Off
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
28.09.13 11:39:09 am
Up
Yates
Reviewer
Offline Off
@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