Quote Originally Posted by ZoriaRPG View Post
By command, you mean [ code ] and [ /code ] ...right?

The function hat I posted is custom, not from any common header. All you would need to do is change the counter IDs to whatever you are using, and call it before Waitdraw(). This is a personal style choice, but I hate to see raw instructions in global active scripts. It is far cleaner to encapsulate them all in functions.
I agree. I also liked the identifiers you used, better than the ones I made.

Tried it last night and it worked like a charm. Code is cleaner. And now I understand the concept of functions and how they are implemented, so thanks for that!

And yes, I was referring to the "/code" command.