Please actually try reading the tutorials and guides before you start scripting. I mean, the thread that you bumped (and I deleted the bump) had the solution to your "problem"
I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).