End User License Agreement (EULA)

I need an end user license agreement for code shared amongst my home projects with other developers. The EULA needs to include a "pay to the order of x" clause, and also needs to include the ability for me to utilze the code at multiple companies that I could participate in. I suspect the EULA may need to be fairly complete, and preclude explicitly illicit usage. If we could have a discussion that would be cool. I was learning about EULA's in college but haven't made one for real life yet.