Option 1:
1. Find and download arma mod-apps from this site
2. Open them & research
3. Test your finds
4. Voila
Option 2:
1. Look around in the forums
2. Voila
Easy, isn't it? It's all around here somewhere
Look around, how other scripts in different mod-apps are 'done public' or 'run magically'