I agree with the guy above, but if you want to learn how to script, try looking at other scripts. I am just starting but I started making sounds (they are easiest).
function serverCmdhi(%client){messageClient(%client, '', 'bye');}