Before you start scripting, you should learn how to do it. Have a look at other scripts and ask your friends for help if you don't understand something. There is also a channel called #help.script on the quakenet. (maybe on other networks, too)

But if I don't sit in front of your computer, I won't be able to help you very much. As I don't know what script you are using at the moment and where exactly it is. Scripting does not work like copy&paste. You must understand what the script does.

To be more precise: Scripting is copy & paste, but trying to make the script do what you want it to do is more like "try and error" then if you do not understand any MSL.
Use the several help possibilities in order to achieve good results. chris1 told you one way.

^\__/..O.o

This is Einkaufswagen. Copy Einkaufswagen into your signature to help him on his way to world domination.