Not bad, but you can also do this: Put this in notepad and save as restart.cfg in your cstrike\cfg

your wait aliases here

bind f12 "exec restart"
rcon_password
rcon quit

That is much easier and may I say shorter, but you did a fine job except you put a semicolon at the end of the command of the alias then a space then a quotation mark, it needs to be just a quotation mark directly after the command the alias codes.