That's true. one script file can't contain two same events. if you have two similar 'On Text' in the same file, only the first one will work.
You'd have to either combine them into one event, or move the second event to an another file (Alt+R - File - New).
If you want to learn more about the way protection scripts work, try
these examples. and if you feel you've got it, there's another great
tutorial at mircscrits.org, which explains many other aspects along with the way IRC works.
anyway, feel free to post your code here.